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: question about -fno-optimize-static-class-initialization


Boehm, Hans wrote:

> How easy is it to determine whether a call to _Jv_AllocObject may have to
> initialize the class?  I guess that's a different issue.


Yes, but it seems like a modest extension.  I say without
having studied the optimization!

By the way the check init code does verify that final fields
are propery itialized (i.e. exactly once), even in the presence
of conditional control flow. Still a few loose ends which might
take while, such as running the testsuite and checking that I
haven't proken the static-class-initialization optimization!
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/per/


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