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.hpp | |
| parent | e4ba786948e8f3abe89ff2ec6b7618f4af2b21cb (diff) | |
Remove need for `BlockingMutex` in `Arena`
Diffstat (limited to 'src/parser.hpp')
| -rw-r--r-- | src/parser.hpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/parser.hpp b/src/parser.hpp index 451cdf53d..565a8e621 100644 --- a/src/parser.hpp +++ b/src/parser.hpp @@ -878,10 +878,8 @@ gb_internal gb_inline bool is_ast_when_stmt(Ast *node) { return node->kind == Ast_WhenStmt; } -gb_global gb_thread_local Arena global_thread_local_ast_arena = {}; - gb_internal gb_inline gbAllocator ast_allocator(AstFile *f) { - return arena_allocator(&global_thread_local_ast_arena); + return permanent_allocator(); } gb_internal Ast *alloc_ast_node(AstFile *f, AstKind kind); |