Skip to content

Commit

Permalink
minor fix in tprotocol
Browse files Browse the repository at this point in the history
  • Loading branch information
Diogo Netto authored and Diogo Netto committed Jun 26, 2022
1 parent 7d02830 commit afac580
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/safepoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,16 +255,15 @@ void jl_safepoint_wait_pmark(void)

void jl_safepoint_wait_sweeping(void)
{
jl_cpu_pause();
while (jl_atomic_load_relaxed(&jl_gc_running) ||
jl_atomic_load_acquire(&jl_gc_running))
jl_cpu_pause();
}

void jl_safepoint_wait_gc(void)
{
while (jl_atomic_load_relaxed(&jl_gc_running) ||
jl_atomic_load_acquire(&jl_gc_running)) {
jl_safepoint_wait_pmark();
jl_safepoint_wait_sweeping();
}
jl_safepoint_wait_pmark();
jl_safepoint_wait_sweeping();
}

void jl_safepoint_enable_sigint(void)
Expand Down

0 comments on commit afac580

Please sign in to comment.