summaryrefslogtreecommitdiff
path: root/rts
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2022-10-22 16:33:06 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2023-03-08 15:02:30 -0500
commitabb6070f488120aef113b686e91b439fe6c3d272 (patch)
treea5547d4004d499211742d91b2d23c9306dd9f8a8 /rts
parent321d46d9eafe8901c78dc96f275fb9430cc6d37a (diff)
downloadhaskell-abb6070f488120aef113b686e91b439fe6c3d272.tar.gz
nonmoving: Fix style
Diffstat (limited to 'rts')
-rw-r--r--rts/sm/NonMoving.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/rts/sm/NonMoving.c b/rts/sm/NonMoving.c
index 3731aebb95..84dc82c1bb 100644
--- a/rts/sm/NonMoving.c
+++ b/rts/sm/NonMoving.c
@@ -1085,10 +1085,11 @@ static void nonmovingMark_(MarkQueue *mark_queue, StgWeak **dead_weaks, StgTSO *
// Set snapshot
nonmovingSegmentInfo(seg)->next_free_snap = seg->next_free;
n_filled++;
- if (seg->link)
+ if (seg->link) {
seg = seg->link;
- else
+ } else {
break;
+ }
}
// add filled segments to sweep_list
SET_SEGMENT_STATE(seg, FILLED_SWEEPING);