[3.0 branch] libjava testsuite, i686-pc-linux-gnu --disable-shared

Bryce McKinlay bryce@waitaki.otago.ac.nz
Sun May 6 07:27:00 GMT 2001


Andrew Haley wrote:

>  > >   {
>  > > !   // FIXME
>  > > !   //JvSynchronize sync (&ClassClass);
>  > >     for (; *classes; ++classes)
>  > >       {
>  >
>  > _Jv_RegisterClasses needs to be made thread-safe before we can
>  > check it in (thats the reason for the FIXME).
>
> Hmm.  Could you explain the problem?  I mean, why is the JvSynchronize
> commented out?

Its been a while, but I think it was because I changed the threads
initialization to run from main_init() rather than _Jv_RegisterClasses.
The reason for doing that escapes me right now, but I think there was
one. But now that I think about it we may have to ensure threads are
initialized in _Jv_RegisterClasses, because even the lower level mutex
abstraction provided by posix-threads.cc etc might require initialization
on some platforms?

regards

  [ bryce ]




More information about the Gcc-bugs mailing list