[Gc] Re: Effective heap utilization

Alexander Petrossian (PAF) Alexander.Petrossian at teligent.ru
Thu Oct 11 03:28:54 PDT 2007

Ludovic Court?s @ Thursday, October 11, 2007 1:12:43 PM (Moscow time):
PAF>>       size_t heap_size=GC_get_heap_size();
PAF>>       size_t free_bytes=GC_get_free_bytes();
LC> Oh, indeed.  I had completely forgotten about these.  :-)
LC> Thanks!

on next step you might notice that libgc heuristics of allocating more memory from OS may not match you needs.

you might decide to play with

(or think about link-replacing the heuristics func)

Alexander Petrossian (PAF), Software Developer, Teligent Russia

More information about the Gc mailing list