[Q] can't build libgcj on Solaris 2.6

Joerg Brunsmann joerg.brunsmann@FernUni-Hagen.de
Thu Dec 9 03:02:00 GMT 1999


Charles-Antoine Gauthier wrote:
> I am currently trying to port the latest libgcj snapshot to RTEMS. I ran
> into the java.lang.IllegalMonitorStateException: current thread not
> owner problem. The exception was thrown when the Java runtime tried to
> initialize the class that contains the main method. The problem is the
> return value from pthread_mutex_trylock() called from
> _Jv_PthreadCheckMonitor in libjava/include/posix-threads.h. Solaris is
> documented in posix-thread.h as not having recursive mutexes so
> pthread_mutex_trylock will almost certainly not return 0 on the first
> call. Hopefully, it will return EDEADLK, in which case my patch below
> should help.

Thanks, I applied tha patch but unfortunately it doesn't help. The return
value from pthread_mutex_trylock() is always zero. So the problem persists.
Please see also my comments regarding recursive mutexes in 'java-prs' 
concerning pr libgcj/117.
Regards,
Jörg


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /