[Gc] Re: Unregistering the main thread

Hans Boehm Hans.Boehm at hp.com
Mon Sep 15 16:07:40 PDT 2008

On Mon, 15 Sep 2008, Ludovic Court?s wrote:

> Hi,
> [Doc quote:]
>     In particular, it is very difficult for the collector to stop all
>  other threads in the system and examine the register contents.  This
>  is currently accomplished with very different mechanisms for some
>  Pthreads implementations.  The Solaris implementation temporarily
>  disables much of the user-level threads implementation by stopping
>  kernel-level threads (`lwp's).  The Linux/HPUX/OSF1 and Irix
>  implementations sends signals to individual Pthreads and has them wait
>  in the signal handler.
The Solaris threads implementation actually now works like the Linux one,
but ...
>> I would be inclined to turn this into eiher a no-op or (on pthreads
>> with recent GC) GC_do_nonblocking().  The latter avoids having the GC
>> send signals that interrupt (and hopefully restart) the system call.
> What do you mean by `GC_do_nonblocking ()'?
Sorry.  I meant GC_do_blocking(), which makes a lot more sense.

> Thanks,
> Ludo'.
> _______________________________________________
> Gc mailing list
> Gc at linux.hpl.hp.com
> https://www.hpl.hp.com/hosted/linux/mail-archives/gc/

More information about the Gc mailing list