parrotcode: Memory allocation | |
Contents | C |
src/gc/memory.c - Memory allocation
The memory (mem) API handles memory allocation,
Basically just a wrapper around malloc/calloc/realloc/free()
with an setup function to initialize the memory pools.
void *mem_sys_allocate
malloc
to allocate system memory.void *mem__internal_allocate
void *mem_sys_allocate_zeroed
calloc
to allocate system memory.
Guaranteed to succeed.void *mem__internal_allocate_zeroed
void *mem_sys_realloc
void *mem_sys_realloc_zeroed
void *mem__internal_realloc
void mem_sys_free
void mem__internal_free
void mem_setup_allocator
|