Skip to content

Commit

Permalink
fix backport of #56097
Browse files Browse the repository at this point in the history
Co-authored-by: Jameson Nash <[email protected]>
  • Loading branch information
KristofferC and vtjnash authored Jan 7, 2025
1 parent bdf8219 commit 8c63ce1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/safepoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,7 @@ int jl_safepoint_suspend_thread(int tid, int waitstate)
// not, so assume it is running GC and wait for GC to finish first.
// It will be unable to reenter helping with GC because we have
// changed its safepoint page.
uv_mutex_unlock(&safepoint_lock);
jl_set_gc_and_wait(jl_current_task);
uv_mutex_lock(&safepoint_lock);
}
while (jl_atomic_load_acquire(&ptls2->suspend_count) != 0) {
int8_t state2 = jl_atomic_load_acquire(&ptls2->gc_state);
Expand Down

0 comments on commit 8c63ce1

Please sign in to comment.