[Gc] Patch adding unsynchronized GC_get_heap_size/free_bytes

Boehm, Hans hans.boehm at hp.com
Sun Sep 13 17:05:40 PDT 2009


Thanks.  I assume you're checking these in, right?

Hans 

> -----Original Message-----
> From: gc-bounces at napali.hpl.hp.com 
> [mailto:gc-bounces at napali.hpl.hp.com] On Behalf Of Ivan Maidanski
> Sent: Saturday, September 12, 2009 11:27 PM
> To: gc at napali.hpl.hp.com
> Subject: [Gc] Patch adding unsynchronized GC_get_heap_size/free_bytes
> 
> Hi!
> 
> 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.
> 
> Bye.
> 


More information about the Gc mailing list