This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GTY or global_tree array?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]