This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
GTY or global_tree array?
- From: Tom Tromey <tromey at redhat dot com>
- To: GCC Hackers <gcc at gcc dot gnu dot org>
- Date: 15 Nov 2002 10:17:03 -0700
- Subject: GTY or global_tree array?
- Reply-to: tromey at redhat dot com
I'm adding a new global tree to gcj. I'd like to know whether it is
preferable to add a new slot to the java_global_trees array (along
with a new JTI_ constant and #define) or to just declare the new tree
as a global variable and mark it with GTY(()).
Is there some global style toward which we are aiming?
Is there a performance benefit to one or the other?
There is definitely a debugging advantage to the GTY route. In case
of a tie, I'll probably let that decide.
Tom