Skip to main content

GC_get_memory_use

Function GC_get_memory_use 

Source
pub unsafe extern "C" fn GC_get_memory_use() -> GC_word
Expand description

Return the total memory use (in bytes) by all allocated blocks. The result is equal to GC_get_heap_size() - GC_get_free_bytes(). Acquires the allocator lock in the reader mode.