Added: arena_release implementation
This commit is contained in:
parent
d475a451a3
commit
66083b3a95
|
@ -40,4 +40,9 @@ arena_allocate(Arena *arena, u64 size)
|
||||||
internal void
|
internal void
|
||||||
arena_release(Arena *arena)
|
arena_release(Arena *arena)
|
||||||
{
|
{
|
||||||
|
for (Arena *node = arena->current, *prev = 0; node != 0; node = prev)
|
||||||
|
{
|
||||||
|
prev = node->prev;
|
||||||
|
platform_memory_release(node, node->size);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user