aboutsummaryrefslogtreecommitdiff
path: root/src/string.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-08-26 15:38:34 +0100
committergingerBill <bill@gingerbill.org>2021-08-26 15:38:34 +0100
commitaa8777ee47f503eb90d4e2225274d0d20a9b39a3 (patch)
tree1848951efd4e7452e5fc04376e21920718f44a76 /src/string.cpp
parent98dd59e412314f089fc9558c5cf92a8a5df5213a (diff)
Change the implementation of `Arena` to use virtual memory, and remove the old gbArena code
Diffstat (limited to 'src/string.cpp')
-rw-r--r--src/string.cpp5
1 files changed, 0 insertions, 5 deletions
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);
}