This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: question about -fno-optimize-static-class-initialization
- From: Per Bothner <per at bothner dot com>
- To: "Boehm, Hans" <hans_boehm at hp dot com>
- Cc: Alexandre Petit-Bianco <apbianco at redhat dot com>, java at gcc dot gnu dot org
- Date: Fri, 30 Nov 2001 16:41:48 -0800
- Subject: Re: question about -fno-optimize-static-class-initialization
- References: <40700B4C02ABD5119F000090278766443BEDB1@hplex1.hpl.hp.com>
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/