Change memory layout of map to be 3 words smaller

This commit is contained in:
gingerBill
2018-08-30 19:14:10 +01:00
parent e0240c186f
commit aa542980ce
12 changed files with 114 additions and 44 deletions
+3
View File
@@ -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;