diff options
| author | gingerBill <bill@gingerbill.org> | 2024-07-15 01:36:54 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-07-15 01:36:54 +0100 |
| commit | a45e05bb180ad5ac3f9bc4199ebbf0b3bcadbf25 (patch) | |
| tree | 0b597a5c0d3e6a5fe1f984ab58b645f23deef342 /src/parser.cpp | |
| parent | e4ba786948e8f3abe89ff2ec6b7618f4af2b21cb (diff) | |
Remove need for `BlockingMutex` in `Arena`
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index 02c37815b..5a3fc1634 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -118,7 +118,7 @@ gb_internal isize ast_node_size(AstKind kind) { gb_internal Ast *alloc_ast_node(AstFile *f, AstKind kind) { isize size = ast_node_size(kind); - Ast *node = cast(Ast *)arena_alloc(&global_thread_local_ast_arena, size, 16); + Ast *node = cast(Ast *)arena_alloc(get_arena(ThreadArena_Permanent), size, 16); node->kind = kind; node->file_id = f ? f->id : 0; |