aboutsummaryrefslogtreecommitdiff
path: root/src/common_memory.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-01-12 00:20:25 +0000
committergingerBill <bill@gingerbill.org>2023-01-12 00:20:25 +0000
commite9cfe698bad140fcfb6dda6baf1e8b2e00e52003 (patch)
tree8d0f1e43967f065fdbd8e7fb3b9a00e3005cce2d /src/common_memory.cpp
parent5fa66ac6a8d8624fdb078d459ff58c45fa2dae9a (diff)
Make the `heap_allocator` just be the `permanent_allocator`
This improves the speed of the compiler with very little memory increase (which surprised me, Ginger Bill)
Diffstat (limited to 'src/common_memory.cpp')
-rw-r--r--src/common_memory.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/common_memory.cpp b/src/common_memory.cpp
index 4c77521e1..940e79f4b 100644
--- a/src/common_memory.cpp
+++ b/src/common_memory.cpp
@@ -306,10 +306,11 @@ gb_internal gbAllocator temporary_allocator() {
gb_internal GB_ALLOCATOR_PROC(heap_allocator_proc);
gb_internal gbAllocator heap_allocator(void) {
- gbAllocator a;
- a.proc = heap_allocator_proc;
- a.data = nullptr;
- return a;
+ return arena_allocator(&permanent_arena);
+ // gbAllocator a;
+ // a.proc = heap_allocator_proc;
+ // a.data = nullptr;
+ // return a;
}