mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-10 14:54:52 -04:00
Change the implementation of Arena to use virtual memory, and remove the old gbArena code
This commit is contained in:
1 parent
98dd59e412
commit
aa8777ee47
9 files changed
+424
-1053
No files matched your search
+1
-4
@@ -252,10 +252,7 @@ void print_query_data_as_json(QueryValue *value, bool format = true, isize inden
|
||||
char const hex_table[] = "0123456789ABCDEF";
|
||||
isize buf_len = name.len + extra + 2 + 1;
|
||||
|
||||
gbTempArenaMemory tmp = gb_temp_arena_memory_begin(&string_buffer_arena);
|
||||
defer (gb_temp_arena_memory_end(tmp));
|
||||
|
||||
u8 *buf = gb_alloc_array(string_buffer_allocator, u8, buf_len);
|
||||
u8 *buf = gb_alloc_array(temporary_allocator(), u8, buf_len);
|
||||
|
||||
isize j = 0;
|
||||
|
||||
|
||||
Reference in new issue
Block a user