[Gc] Scanning __thread variables

Andrew Haley aph at redhat.com
Mon Aug 21 11:04:48 PDT 2006


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.



More information about the Gc mailing list