diff options
| author | gingerBill <bill@gingerbill.org> | 2024-07-15 01:44:23 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-07-15 01:44:23 +0100 |
| commit | eb6805ef401f03ccfe0c2f8a71097e2560f804a8 (patch) | |
| tree | 83530db56c5f2d74378a1c92111d40a4193e9503 /src/check_expr.cpp | |
| parent | a45e05bb180ad5ac3f9bc4199ebbf0b3bcadbf25 (diff) | |
Disable the need for mutexes in single threaded checker stage
Diffstat (limited to 'src/check_expr.cpp')
| -rw-r--r-- | src/check_expr.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index 82f64738f..3fcfe29f5 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -500,7 +500,9 @@ gb_internal bool find_or_generate_polymorphic_procedure(CheckerContext *old_c, E nctx.no_polymorphic_errors = false; // NOTE(bill): Reset scope from the failed procedure type - scope_reset(scope); + scope->head_child.store(nullptr, std::memory_order_relaxed); + string_map_clear(&scope->elements); + ptr_set_clear(&scope->imported); // LEAK NOTE(bill): Cloning this AST may be leaky but this is not really an issue due to arena-based allocation Ast *cloned_proc_type_node = clone_ast(pt->node); |