More Tru64 errors

Bryce McKinlay bryce@waitaki.otago.ac.nz
Sat Dec 8 19:47:00 GMT 2001


The Morsbergers wrote:

>I found something. I configured gcc without "--enable-threads=posix"
>(because gc was within pthreads when it cored) and my test program works.
>Now I can not create any threaded objects (see example below).
>
>Does gcj support threaded java objects? If not, what is the issue and maybe
>I can look into it.
>

It sounds like the collector's support for threads on Tru64 isn't 
working. While libjava's thread support (libjava/posix-threads.cc) is 
designed to be pretty much portable, the GC requires functionality which 
is not available in the POSIX spec. Basically, it needs a way to suspend 
all other threads so that a collection can run with the world stopped. 
Since there is no portable way to do this it needs some special code for 
each threads implementation.

See this comment in boehm-gc/linux_threads.c:

/*
 * Linux_threads.c now also includes some code to support HPUX and
 * OSF1 (Compaq Tru64 Unix, really).  The OSF1 support is not yet
 * functional.  The OSF1 code is based on Eric Benson's
 * patch, though that was originally against hpux_irix_threads.  The code
 * here is completely untested.  With 0.0000001% probability, it might
 * actually work.

regards

Bryce.




More information about the Java mailing list