mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-31 11:50:07 +00:00
Correct race condition on untyped expr info map logic on global evaluations
This commit is contained in:
+5
-2
@@ -279,8 +279,7 @@ struct CheckerInfo {
|
||||
PtrSet<Entity *> minimum_dependency_set;
|
||||
PtrSet<isize> minimum_dependency_type_info_set;
|
||||
|
||||
UntypedExprInfoMap global_untyped; // NOTE(bill): This needs to be a map and not on the Ast
|
||||
// as it needs to be iterated across afterwards
|
||||
|
||||
|
||||
Array<Entity *> testing_procedures;
|
||||
|
||||
@@ -295,6 +294,10 @@ struct CheckerInfo {
|
||||
|
||||
gbSemaphore collect_semaphore;
|
||||
|
||||
UntypedExprInfoMap global_untyped; // NOTE(bill): This needs to be a map and not on the Ast
|
||||
// as it needs to be iterated across afterwards
|
||||
BlockingMutex global_untyped_mutex;
|
||||
|
||||
// NOT recursive & Only used at the end of `check_proc_body`
|
||||
// This is a possible source of contention but probably not
|
||||
// too much of a problem in practice
|
||||
|
||||
Reference in New Issue
Block a user