From aa8777ee47f503eb90d4e2225274d0d20a9b39a3 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Thu, 26 Aug 2021 15:38:34 +0100 Subject: Change the implementation of `Arena` to use virtual memory, and remove the old gbArena code --- src/string.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/string.cpp') diff --git a/src/string.cpp b/src/string.cpp index 434c20d90..ca53fb2fc 100644 --- a/src/string.cpp +++ b/src/string.cpp @@ -1,11 +1,6 @@ -gb_global gbArena string_buffer_arena = {}; -gb_global gbAllocator string_buffer_allocator = {}; gb_global BlockingMutex string_buffer_mutex = {}; void init_string_buffer_memory(void) { - // NOTE(bill): This should be enough memory for file systems - gb_arena_init_from_allocator(&string_buffer_arena, heap_allocator(), gb_megabytes(1)); - string_buffer_allocator = gb_arena_allocator(&string_buffer_arena); mutex_init(&string_buffer_mutex); } -- cgit v1.2.3