This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Static initializer elimination
- To: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- Subject: Re: Static initializer elimination
- From: Tom Tromey <tromey at redhat dot com>
- Date: 16 Oct 2001 09:08:12 -0600
- Cc: java-patches at gcc dot gnu dot org
- References: <3BCBF158.7020405@waitaki.otago.ac.nz>
- Reply-To: tromey at redhat dot com
>>>>> "Bryce" == Bryce McKinlay <bryce@waitaki.otago.ac.nz> writes:
Bryce> Here is the famous static-initializer-elimination patch, which I am
Bryce> finally going to check in. I am pretty satisfied that it doesn't
Bryce> introduce any thread safety problems now, since it synchronizes on
Bryce> java.lang.Class to prevent concurrent modification of the class chain
Bryce> during dlopen() calls and during class registration by the interpreter.
Bryce> The other dlopen call, in SharedLibClassLoader, is already appropriatly
Bryce> synchronized.
Thanks! This is really great.
Tom