Skip to content
Snippets Groups Projects
Commit 1abaf38a authored by Ben Gamari's avatar Ben Gamari Committed by GHC GitLab CI
Browse files

nonmoving: Fix small CPP bug

Previously an incorrect semicolon meant that we would fail to call
busy_wait_nop when spinning.
parent e7dbdbfa
No related branches found
No related tags found
No related merge requests found
...@@ -737,9 +737,11 @@ void updateRemembSetPushStack(Capability *cap, StgStack *stack) ...@@ -737,9 +737,11 @@ void updateRemembSetPushStack(Capability *cap, StgStack *stack)
// The concurrent GC has claimed the right to mark the stack. // The concurrent GC has claimed the right to mark the stack.
// Wait until it finishes marking before proceeding with // Wait until it finishes marking before proceeding with
// mutation. // mutation.
while (needs_upd_rem_set_mark((StgClosure *) stack)); while (needs_upd_rem_set_mark((StgClosure *) stack))
#if defined(PARALLEL_GC) #if defined(PARALLEL_GC)
busy_wait_nop(); // TODO: Spinning here is unfortunate busy_wait_nop(); // TODO: Spinning here is unfortunate
#else
;
#endif #endif
return; return;
} }
......
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