aboutsummaryrefslogtreecommitdiff
path: root/core/mem/allocators.odin
diff options
context:
space:
mode:
Diffstat (limited to 'core/mem/allocators.odin')
-rw-r--r--core/mem/allocators.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/mem/allocators.odin b/core/mem/allocators.odin
index fc009621b..66da12959 100644
--- a/core/mem/allocators.odin
+++ b/core/mem/allocators.odin
@@ -153,7 +153,7 @@ scratch_allocator_proc :: proc(allocator_data: rawptr, mode: Allocator_Mode,
s := (^Scratch_Allocator)(allocator_data)
if s.data == nil {
- DEFAULT_BACKING_SIZE :: 1<<22
+ DEFAULT_BACKING_SIZE :: 4 * Megabyte
if !(context.allocator.procedure != scratch_allocator_proc &&
context.allocator.data != allocator_data) {
panic("cyclic initialization of the scratch allocator with itself")