mirror of
https://github.com/pound-emu/pound.git
synced 2025-12-12 01:36:57 +00:00
I wanted a fast and predictable memory allocator before I start working on the virtual filesystem.
Functions like malloc and realloc will not be used anymore, instead, the allocator will
need to be passed as a function parameter when doing any kind of heap allocation. For example
char* create_string(Memory::Arena *allocator);
int* create_int_array(Memory::Arena *allocator, int size);
The definition MEMORY_CAPACITY in arena.h sets the amount of memory the arena can use.
The number can be increased as needed.
Signed-off-by: Ronald Caesar <github43132@proton.me>
|
||
|---|---|---|
| .. | ||
| ARM | ||
| audio | ||
| Base | ||
| gpu | ||
| Images | ||
| JIT | ||
| memory | ||
| miscgui | ||
| main.cpp | ||
| Pound.rc | ||