diff options
| author | Daniel Gavin <daga@foa.dk> | 2024-03-22 13:58:09 +0100 |
|---|---|---|
| committer | Daniel Gavin <daga@foa.dk> | 2024-03-22 13:58:09 +0100 |
| commit | 67849c0b0a685e66de9758c078f6dbed3fdfe153 (patch) | |
| tree | bc1d3cfd68c1abb9cd5e1dc780a7006e190961fd /src/server/build.odin | |
| parent | 63d9bdcde278c262b6365f3abfa964fa578ea4c0 (diff) | |
Try to use the context.temp_allocator growing allocator for the build of packages.
Diffstat (limited to 'src/server/build.odin')
| -rw-r--r-- | src/server/build.odin | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/server/build.odin b/src/server/build.odin index d8a20ac..bda7e73 100644 --- a/src/server/build.odin +++ b/src/server/build.odin @@ -69,12 +69,8 @@ try_build_package :: proc(pkg_name: string) { return } - temp_arena: mem_virtual.Arena - allocator_err := mem_virtual.arena_init_growing(&temp_arena, mem.Megabyte * 16); - defer mem_virtual.arena_destroy(&temp_arena) - { - context.allocator = mem_virtual.arena_allocator(&temp_arena) + context.allocator = context.temp_allocator for fullpath in matches { if skip_file(filepath.base(fullpath)) { @@ -128,7 +124,7 @@ try_build_package :: proc(pkg_name: string) { collect_symbols(&indexer.index.collection, file, uri.uri) - free_all(context.allocator) + //free_all(context.allocator) } } |