mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-04 21:08:40 +00:00
actually push new block to list
This commit is contained in:
@@ -124,9 +124,10 @@ arena_push(Arena *arena, U64 size, U64 align)
|
|||||||
new_block = arena_alloc(.reserve_size = res_size,
|
new_block = arena_alloc(.reserve_size = res_size,
|
||||||
.commit_size = cmt_size,
|
.commit_size = cmt_size,
|
||||||
.flags = current->flags);
|
.flags = current->flags);
|
||||||
new_block->base_pos = current->base_pos + current->res;
|
new_block->base_pos = current->base_pos + current->res;
|
||||||
SLLStackPush_N(arena->current, new_block, prev);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SLLStackPush_N(arena->current, new_block, prev);
|
||||||
|
|
||||||
current = new_block;
|
current = new_block;
|
||||||
pos_pre = AlignPow2(current->pos, align);
|
pos_pre = AlignPow2(current->pos, align);
|
||||||
|
|||||||
Reference in New Issue
Block a user