diff options
| author | gingerBill <bill@gingerbill.org> | 2021-08-26 15:38:34 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-08-26 15:38:34 +0100 |
| commit | aa8777ee47f503eb90d4e2225274d0d20a9b39a3 (patch) | |
| tree | 1848951efd4e7452e5fc04376e21920718f44a76 /src/string.cpp | |
| parent | 98dd59e412314f089fc9558c5cf92a8a5df5213a (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.cpp | 5 |
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); } |