NAME ^

src/gc/memory.c - Memory allocation

DESCRIPTION ^

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.

Functions ^

mem_sys_allocate

Uses malloc to allocate system memory.

mem__internal_allocate

TODO: Not yet documented!!!

mem_sys_allocate_zeroed

Uses calloc to allocate system memory.

mem__internal_allocate_zeroed

TODO: Not yet documented!!!

mem_sys_realloc

Resize a chunk of system memory.

mem_sys_realloc_zeroed

Resize a chunk of system memory. Fill the newly allocated space with zeroes.

mem__internal_realloc

TODO: Not yet documented!!!

mem_sys_free

Free a chunk of memory back to the system.

mem__internal_free

TODO: Not yet documented!!!

mem_setup_allocator

Initializes the allocator.


parrot