| 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_allocatemalloc to allocate system memory.void *mem__internal_allocatevoid *mem_sys_allocate_zeroedcalloc to allocate system memory.
Guaranteed to succeed.void *mem__internal_allocate_zeroedvoid *mem_sys_reallocvoid *mem_sys_realloc_zeroedvoid *mem__internal_reallocvoid mem_sys_freevoid mem__internal_freevoid mem_setup_allocator
|
|
|