[Gc] GC_get_bytes_since_gc locks
Juan Jose Garcia-Ripoll
juanjose.garciaripoll at googlemail.com
Wed Aug 24 07:37:47 PDT 2011
On Wed, Aug 24, 2011 at 3:53 PM, Andy Wingo <wingo at pobox.com> wrote:
> Things work fine. We do use GC_get_bytes_since_gc, but apparently not
> while holding the alloc lock.
>
I checked the Guile sources and according to the current understanding of
the library it is wrong. It will not lead to a deadlock but the library
mixes calls to functions that are data safe
./libguile/gc.c: heap_size = GC_get_heap_size ();
./libguile/gc.c: free_bytes = GC_get_free_bytes ();
./libguile/gc.c: bytes_since_gc = GC_get_bytes_since_gc ();
with one that is not
./libguile/gc.c: total_bytes = GC_get_total_bytes ();
Juanjo
--
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://napali.hpl.hp.com/pipermail/gc/attachments/20110824/42e6bb5c/attachment.htm
More information about the Gc
mailing list