ProcessManager on Solaris
David Daney
ddaney@avtrex.com
Wed Feb 16 03:07:00 GMT 2005
David Daney wrote:
> 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.
>
Attached is an untested patch. If it solved the Eric's Solaris problem,
I think it is a better solution.
If this works I can test and commit if desired.
David Daney.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: posix-threads.diff
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20050216/40a35b9f/attachment.ksh>
More information about the Java-patches
mailing list