[Gc] Valgrind/g++: assertion failure in GC_mark_from()?

Alexander Petrossian (PAF) Alexander.Petrossian at teligent.ru
Fri May 5 05:07:46 PDT 2006


Marnix Klooster @ Friday, May 5, 2006 3:49:28 PM:
MK> I've tested this only with valgrind 2.4.0 

Marnix,
why on Earth you need valgrid for that?
you have "top" and "ps" to show you OS vision of memory,
and you have these statistical functions to figure out libgc vision of memory.
you never need valgrind, actually.

/* Return the number of bytes in the heap.  Excludes collector private	*/
/* data structures.  Includes empty blocks and fragmentation loss.	*/
/* Includes some pages that were allocated but never written.		*/
GC_API size_t GC_get_heap_size GC_PROTO((void));

/* Return a lower bound on the number of free bytes in the heap.	*/
GC_API size_t GC_get_free_bytes GC_PROTO((void));

/* Return the number of bytes allocated since the last collection.	*/
GC_API size_t GC_get_bytes_since_gc GC_PROTO((void));

/* Return the total number of bytes allocated in this process.		*/
/* Never decreases, except due to wrapping.				*/
GC_API size_t GC_get_total_bytes GC_PROTO((void));




-- 
Alexander Petrossian, Software Developer, Teligent Russia



More information about the Gc mailing list