aboutsummaryrefslogtreecommitdiff
path: root/core/mem/allocators.odin
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2023-01-01 13:10:49 +0000
committerGitHub <noreply@github.com>2023-01-01 13:10:49 +0000
commitc1384afe2fd705ce075277aa8dc6bc259dc94cdc (patch)
treeeac021b897fe6525a076264d5545aac6c96cfbb5 /core/mem/allocators.odin
parent00823ca88c870d49186dbcaa21c54384c0b9364f (diff)
parent547c7bce1b28757415c553830a18d94636cedbf8 (diff)
Merge branch 'master' into compiler-improvements-2022-12
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")