[Gc] Patch adding unsynchronized GC_get_heap_size/free_bytes

Ivan Maidanski ivmai at mail.ru
Sat Sep 12 23:27:20 PDT 2009


This small patch (ivmai133.diff) adds two public function GC_get_heap_size_inner() and GC_get_free_bytes_inner() which do the same as GC_get_heap_size() and GC_get_free_bytes(), respectively, but don't acquire the allocation lock. The declarations are placed in gc_mark.h (where other such "inner" functions exist) instead of gc.h (just to be "not so public").

This could be of use in some projects (eg., Mono).

ChangeLog entries:

	* misc.c (GC_get_heap_size_inner, GC_get_free_bytes_inner): New
	API function.
	* include/gc_pmark.h (GC_get_heap_size_inner,
	GC_get_free_bytes_inner): New function declaration.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ivmai133.diff
Type: application/octet-stream
Size: 1217 bytes
Desc: not available
Url : https://napali.hpl.hp.com/pipermail/gc/attachments/20090913/547ee95c/ivmai133.obj

More information about the Gc mailing list