This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: Strange code in Class initalization
- To: Kresten Krab Thorup <krab at daimi dot au dot dk>
- Subject: Re: Strange code in Class initalization
- From: Bryce McKinlay <bryce at albatross dot co dot nz>
- Date: Wed, 08 Dec 1999 08:59:19 +1300
- CC: java-discuss at sourceware dot cygnus dot com
- References: <384C64D6.A3E3@albatross.co.nz> <xz6yab7ezyp.fsf@ariel.daimi.au.dk>
Kresten Krab Thorup wrote:
> As I remember it, the problem is that the call to ClassLoader::
> resolveClass0 (this); may cause an exception, and thus it should be
> called without the class lock enabled.
OK, Thanks. I see the problem. But I think it is wrong to check the
state before entering the monitor. Perhaps it would be better to call
_Jv_MonitorExit(); resolveClass0(); _Jv_MonitorEnter(); in the case of
an interpreted class?
regards
[ bryce ]