فهرست منبع

Use `permanent_allocator()` instead of `temporary_allocator()` temporarily to fix a bug

gingerBill 15 ساعت پیش
والد
کامیت
11be0cb4ab
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      src/common_memory.cpp

+ 2 - 1
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();
 }