Change memory layout of map to be 3 words smaller
This commit is contained in:
1 parent
e0240c186f
commit
aa542980ce
12 files changed
+114
-44
No files matched your search
@@ -83,6 +83,9 @@ heap_allocator_proc :: proc(allocator_data: rawptr, mode: mem.Allocator_Mode,
|
||||
// NOTE(bill): Does nothing
|
||||
|
||||
case Resize:
|
||||
if old_memory == nil {
|
||||
return heap_alloc(size);
|
||||
}
|
||||
ptr := heap_resize(old_memory, size);
|
||||
assert(ptr != nil);
|
||||
return ptr;
|
||||
|
||||
Reference in new issue
Block a user