This is the mail archive of the java-discuss@sourceware.cygnus.com 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: Strange code in Class initalization


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 ]



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