This is the mail archive of the java@gcc.gnu.org mailing list for the Java 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]

Re: class initialization check overhead


>>>>> "Jeff" == Jeff Sturm <jsturm@one-point.com> writes:

>> (BTW does gcj currently know that vtable slots are immutable?  In
>> the past I think I looked at this and decided it didn't know and
>> was therefore missing some potential optimizations.  But I haven't
>> looked in quite some time.)

Jeff> I noticed that too.  I guess the backend considers all memory to
Jeff> be clobbered by a call, even expressions marked with
Jeff> TREE_READONLY or TREE_CONSTANT.  There must be some way to tell
Jeff> the backend that the value at some address will never change.

I know this came up for g++.  There was a discussion about it, but I
didn't follow it to its conclusion.  But there is an answer out there
somewhere.  I'll submit a PR a bit later.

Tom


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