[Gc] GC_get_bytes_since_gc locks

Andy Wingo wingo at pobox.com
Wed Aug 24 06:53:17 PDT 2011

On Wed 24 Aug 2011 10:13, Andy Wingo <wingo at pobox.com> writes:

> On Wed 24 Aug 2011 09:45, Juan Jose Garcia-Ripoll <juanjose.garciaripoll at googlemail.com> writes:
>> I presume that all high level languages using some statistics of
>> garbage collection will rely on this function. AFAIK there is no other
>> reliable, backwards compatible, non-wrapping way to determine the
>> amount of memory allocated by the library than inspecting this value
>> among collections.
> I'll give it a try with Guile to see what happens.  It will be an
> opportunity to change from CVS to git :)

Things work fine.  We do use GC_get_bytes_since_gc, but apparently not
while holding the alloc lock.


More information about the Gc mailing list