diff options
| author | Ben Gamari <ben@smart-cactus.org> | 2022-12-04 16:18:47 -0500 |
|---|---|---|
| committer | Ben Gamari <ben@smart-cactus.org> | 2023-04-12 07:43:22 -0400 |
| commit | a38f0a816ab163e599d227b44afcda6c41324cc1 (patch) | |
| tree | 17a667b2855213bb59a9a01e6f5b9a90aaee5248 | |
| parent | 20b01cbffa7ddc69b5342b4076cbf3ba5ae809ef (diff) | |
| download | haskell-a38f0a816ab163e599d227b44afcda6c41324cc1.tar.gz | |
nonmoving: Add missing no-op in busy-wait loop
(cherry picked from commit ed5443ec9195f27522abf4b2882dbc6b6a9f17f5)
| -rw-r--r-- | rts/sm/NonMovingMark.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/rts/sm/NonMovingMark.c b/rts/sm/NonMovingMark.c index 1e29648814..dfebe62ce8 100644 --- a/rts/sm/NonMovingMark.c +++ b/rts/sm/NonMovingMark.c @@ -1307,8 +1307,11 @@ mark_closure (MarkQueue *queue, const StgClosure *p0, StgClosure **origin) goto done; case WHITEHOLE: - while (*(StgInfoTable* volatile*) &p->header.info == &stg_WHITEHOLE_info); - // busy_wait_nop(); // FIXME + while (*(StgInfoTable* volatile*) &p->header.info == &stg_WHITEHOLE_info) +#if defined(PARALLEL_GC) + busy_wait_nop() +#endif + ; goto try_again; default: |
