[Gc] Scanning __thread variables

Hans Boehm Hans.Boehm at hp.com
Mon Aug 21 12:02:47 PDT 2006


I believe that for gc7.0 CVS __thread variables that are part of the
initial executable (not dlopened) should be scanned if you're running on
Linux.  Otherwise, the answer is generally no.  In the other cases,
you need to keep duplicate pointers someplace that is globally
visible.

Hans

On Mon, 21 Aug 2006, Andrew Haley wrote:

> Does the gc support heap pointer variables defined using __thread?  As
> far as I am aware the gc scans the loaded data segments of each shared
> library in turn, but only from the point view of the current thread
> that is executing.
>
> I can't tell if a pointer to the heap in a different thread from the
> one in which heap marking is done will be scanned or not.
>
> Has anyone tried it?  FYI, this is with regard to the thread local
> storage model described in http://people.redhat.com/drepper/tls.pdf.
>
> Andrew.
>
> _______________________________________________
> Gc mailing list
> Gc at linux.hpl.hp.com
> http://www.hpl.hp.com/hosted/linux/mail-archives/gc/
>


More information about the Gc mailing list