Skip to content
Snippets Groups Projects
Commit 9c3c1527 authored by parcs's avatar parcs
Browse files

Call busy_wait_nop() in the spin-wait loop in shutdown_gc_threads()

parent 2e3c6a53
No related merge requests found
......@@ -1182,7 +1182,10 @@ shutdown_gc_threads (nat me USED_IF_THREADS)
for (i=0; i < n_gc_threads; i++) {
if (i == me || gc_threads[i]->idle) continue;
while (gc_threads[i]->wakeup != GC_THREAD_WAITING_TO_CONTINUE) { write_barrier(); }
while (gc_threads[i]->wakeup != GC_THREAD_WAITING_TO_CONTINUE) {
busy_wait_nop();
write_barrier();
}
}
#endif
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment