aboutsummaryrefslogtreecommitdiff
path: root/src/common_memory.cpp
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2025-09-14 17:37:17 +0100
committergingerBill <gingerBill@users.noreply.github.com>2025-09-14 17:37:17 +0100
commit11be0cb4ab41c52591a90ca07e7a04062487369e (patch)
treed9942f599ff1006daa4e592b251875e0b2e7c44f /src/common_memory.cpp
parent7db57e2d9c7d6032334d73f1056478fa23ee4b3a (diff)
Use `permanent_allocator()` instead of `temporary_allocator()` temporarily to fix a bug
Diffstat (limited to 'src/common_memory.cpp')
-rw-r--r--src/common_memory.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common_memory.cpp b/src/common_memory.cpp
index f169d7974..addd43687 100644
--- a/src/common_memory.cpp
+++ b/src/common_memory.cpp
@@ -481,7 +481,8 @@ gb_internal gbAllocator permanent_allocator() {
}
gb_internal gbAllocator temporary_allocator() {
- return {thread_arena_allocator_proc, cast(void *)cast(uintptr)ThreadArena_Temporary};
+ // return {thread_arena_allocator_proc, cast(void *)cast(uintptr)ThreadArena_Temporary};
+ return permanent_allocator();
}