aboutsummaryrefslogtreecommitdiff
path: root/src/check_builtin.cpp
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2024-03-25 13:29:08 +0000
committerGitHub <noreply@github.com>2024-03-25 13:29:08 +0000
commit600ca83386c473aeae8c93fce34d4d1d3ab7d636 (patch)
treec88cac66cae8369207254488e7a7b9f09a4fb54d /src/check_builtin.cpp
parente5629dafd0be1be42a3bd183a09ff82492b6b386 (diff)
parent6d4f30de1a85fe51159808d70a342c1c915d15de (diff)
Merge pull request #3326 from rick-masters/fix_fields_wait_signal
Fix fields_wait_signal futex.
Diffstat (limited to 'src/check_builtin.cpp')
-rw-r--r--src/check_builtin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp
index 53e4acbd1..f4aa9567d 100644
--- a/src/check_builtin.cpp
+++ b/src/check_builtin.cpp
@@ -3393,6 +3393,7 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As
elem->Struct.tags = gb_alloc_array(permanent_allocator(), String, fields.count);
elem->Struct.node = dummy_node_struct;
type_set_offsets(elem);
+ wait_signal_set(&elem->Struct.fields_wait_signal);
}
Type *soa_type = make_soa_struct_slice(c, dummy_node_soa, nullptr, elem);
@@ -3766,6 +3767,7 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As
soa_struct->Struct.tags[i] = old_struct->Struct.tags[i];
}
}
+ wait_signal_set(&soa_struct->Struct.fields_wait_signal);
Token token = {};
token.string = str_lit("Base_Type");