diff options
| author | Daniel Gavin <danielgavin5@hotmail.com> | 2022-07-27 22:47:03 +0200 |
|---|---|---|
| committer | Daniel Gavin <danielgavin5@hotmail.com> | 2022-07-27 22:47:03 +0200 |
| commit | cdbc1bfd870ffc4d317b48ad49019fc9f6edb74f (patch) | |
| tree | ff7dac88f2740172aced6fccf514fc840d6fc665 /src | |
| parent | 7788d95f858b3502de48bbaf04ece3308de81258 (diff) | |
Growing arena seems buggy - switching back to ring buffer, but with far larger buffer.
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.odin | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.odin b/src/main.odin index a47f3b1..525df08 100644 --- a/src/main.odin +++ b/src/main.odin @@ -103,8 +103,10 @@ main :: proc() { when ODIN_OS == .Darwin { init_global_temporary_allocator(mem.Megabyte*100) } else { - growing_arena: common.Growing_Arena - context.temp_allocator = common.growing_arena_allocator(&growing_arena) + init_global_temporary_allocator(mem.Megabyte*100) + //Gives weird allocation errors + //growing_arena: common.Growing_Arena + //context.temp_allocator = common.growing_arena_allocator(&growing_arena) } run(&reader, &writer) |