ProcessManager on Solaris
David Daney
ddaney@avtrex.com
Wed Feb 16 08:44:00 GMT 2005
Bryce McKinlay wrote:
>
> libjava uses the regular POSIX threads on Solaris. As Hans mentioned, we
> should migrate the boehm-gc to use the standard pthreads code on Solaris
> too.
>
> The reason why the mask isn't applied to the GC's daemon thread is that
> we initialize the GC before we attach the main thread, so the signal
> mask isn't applied to the main thread yet. An alternate solution would
> be to make sure block_sigchld() gets called from the main thread before
> _Jv_InitGC().
>
Then this is a latent bug in the boehm-gc/pthread also.
int libjava/posix-threads.cc _Jv_InitThreads() we must call
block_sigchld(). This would fix both the latent pthread bug as well as
Eric's Solaris problem.
David Daney.
More information about the Java
mailing list