This is the mail archive of the java-patches@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]

Re: Static initializer elimination


>>>>> "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


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