Remove need for BlockingMutex in Arena

This commit is contained in:
gingerBill
2024-07-15 01:36:54 +01:00
parent e4ba786948
commit a45e05bb18
3 changed files with 5 additions and 16 deletions
+1 -3
View File
@@ -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);