[Gc] Bug: GC_get_stack_base does not acquire allocator lock

Burkhard Linke blinke at CeBiTec.Uni-Bielefeld.DE
Thu Mar 4 08:55:25 PST 2010


GC_get_stack_base under Solaris (and probably every other OS that uses the 
GC_find_limit() based implementation) does not acquire the allocator lock. If 
libgc is built with assertions enabled applications fail if they start a 
thread using the GC start wrapper or call GC_get_stack_base on their own 
(e.g. mono).

The attached patch adds the missing LOCK() and UNLOCK() statements to the 
function in question.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: stack_base_lock.diff
Type: text/x-diff
Size: 779 bytes
Desc: not available
Url : https://napali.hpl.hp.com/pipermail/gc/attachments/20100304/a0ca975c/stack_base_lock.bin

More information about the Gc mailing list