question about -fno-optimize-static-class-initialization

Per Bothner per@bothner.com
Fri Nov 30 16:41:00 GMT 2001


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/


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /