[Gc] Regarding Stack Bottom

Boehm, Hans hans_boehm at hp.com
Tue Feb 17 11:17:47 PST 2004


The collector needs to know the base of the main stack (GC_stackbottom), since it needs
to find all pointers stored on the stack.  To do so in the single-threaded case, it scans
memory between GC_stackbottom and the current stack pointer.  In the multithreaded case,
GC_stackbottom may still be needed for the main thread; all other stack bases are usually
identified by intercepting thread creation, but this doesn't work for the
main thread.

I also updated the mark phase description in http://www.hpl.hp.com/personal/Hans_Boehm/gc/gcdescr.html
to be a bit more explicit about this.

Hans

-----Original Message-----
From: vasantha selvi
Sent: Tuesday, February 17, 2004 6:34 AM

Hi Boehm,
    What is the need for StackBottom for GC? What the places it have been used by GC?    
Regards,
VS                  


More information about the Gc mailing list