Skip to content
  • Sponsor
  • Notifications You must be signed in to change notification settings
  • Fork 5.6k
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

staticdata: Close data race after backedge insertion #57229

Merged
merged 2 commits into from
Feb 6, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update src/staticdata.c
Co-authored-by: Jameson Nash <vtjnash@gmail.com>
Keno and vtjnash authored Feb 6, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit a52df9c56e4db0ec0a0d4a566c86a70016e7cd88
2 changes: 1 addition & 1 deletion src/staticdata.c
Original file line number Diff line number Diff line change
@@ -4269,7 +4269,7 @@ JL_DLLEXPORT void _jl_promote_ci_to_current(jl_code_instance_t *ci, size_t valid
{
if (jl_atomic_load_relaxed(&ci->max_world) != validated_world)
return;
jl_atomic_store_relaxed(&ci->max_world, (size_t)-1);
jl_atomic_store_relaxed(&ci->max_world, ~(size_t)0);
jl_svec_t *edges = jl_atomic_load_relaxed(&ci->edges);
for (size_t i = 0; i < jl_svec_len(edges); i++) {
jl_value_t *edge = jl_svecref(edges, i);