This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ProcessManager on Solaris


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]