aboutsummaryrefslogtreecommitdiff
path: root/src/common.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2019-02-06 16:06:48 +0000
committergingerBill <bill@gingerbill.org>2019-02-06 16:06:48 +0000
commite1ae359a774fc343f5a3400eabf4c9b3ca5d6eb4 (patch)
tree2f2e4c50e6bb145f3718f3ddd4877b05f39f22d5 /src/common.cpp
parentbc5c37ebb188384d0a44b0b35aec9e01bc9104f0 (diff)
Replace redundant code
Diffstat (limited to 'src/common.cpp')
-rw-r--r--src/common.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.cpp b/src/common.cpp
index c85df469a..3911315f6 100644
--- a/src/common.cpp
+++ b/src/common.cpp
@@ -365,7 +365,7 @@ void arena_grow(Arena *arena, isize min_size) {
size = ALIGN_UP(size, ARENA_MIN_ALIGNMENT);
void *new_ptr = gb_alloc(arena->backing, size);
arena->ptr = cast(u8 *)new_ptr;
- gb_zero_size(arena->ptr, size);
+ // gb_zero_size(arena->ptr, size); // NOTE(bill): This should already be zeroed
GB_ASSERT(arena->ptr == ALIGN_DOWN_PTR(arena->ptr, ARENA_MIN_ALIGNMENT));
arena->end = arena->ptr + size;
array_add(&arena->blocks, arena->ptr);