Expand description

Global allocation. Used by the Rust standard library as the global allocator. Similar to malloc() and friends.

Currently, we maintain a list of allocatable objects, adding as needed, that we can pull from. We used a simple linked-list allocator to perform allocation within objects. This whole system can be optimized dramatically.

Functions

Allocate a region of memory as specified by layout. Minimum 16-byte alignment. If we are out of memory, return null.
Free a region of previously allocated memory. If ptr is null, do nothing.
Reallocate a region of memory. Acts like realloc.