aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanielGavin <danielgavin5@hotmail.com>2024-03-25 19:30:57 +0100
committerDanielGavin <danielgavin5@hotmail.com>2024-03-25 19:30:57 +0100
commitca748512ad27c031460cc21d8abc3e522240a1c3 (patch)
treee414f74b3048f9b17d62578618f40efde84d1c83
parentad65097937a58e073bd45c02fd65dc4bc646da65 (diff)
parent67849c0b0a685e66de9758c078f6dbed3fdfe153 (diff)
Merge branch 'master' of https://github.com/DanielGavin/ols
-rw-r--r--src/server/build.odin13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/server/build.odin b/src/server/build.odin
index d8c713a..e29cc2e 100644
--- a/src/server/build.odin
+++ b/src/server/build.odin
@@ -12,6 +12,7 @@ import path "core:path/slashpath"
import "core:runtime"
import "core:strings"
import "core:time"
+import mem_virtual "core:mem/virtual"
import "src:common"
@@ -74,16 +75,8 @@ try_build_package :: proc(pkg_name: string) {
return
}
- temp_arena: mem.Arena
-
- mem.arena_init(
- &temp_arena,
- make([]byte, mem.Megabyte * 25, runtime.default_allocator()),
- )
- defer delete(temp_arena.data)
-
{
- context.allocator = mem.arena_allocator(&temp_arena)
+ context.allocator = context.temp_allocator
for fullpath in matches {
if skip_file(filepath.base(fullpath)) {
@@ -137,7 +130,7 @@ try_build_package :: proc(pkg_name: string) {
collect_symbols(&indexer.index.collection, file, uri.uri)
- free_all(context.allocator)
+ //free_all(context.allocator)
}
}