diff options
| author | Ben Gamari <ben@smart-cactus.org> | 2022-10-22 16:33:06 +0000 |
|---|---|---|
| committer | Ben Gamari <ben@smart-cactus.org> | 2023-04-12 07:43:20 -0400 |
| commit | 03e3094084d3818cf96fe34b6e444679161ed11a (patch) | |
| tree | 8930e38834364b58d3ca54112a2c0571e3d16b3c | |
| parent | b258e06465c557fa4a4eaaad8cb1a1fda80fbfea (diff) | |
| download | haskell-03e3094084d3818cf96fe34b6e444679161ed11a.tar.gz | |
nonmoving: Fix style
(cherry picked from commit 1ca730ce410007781489821188ea8c1ca85f78f9)
| -rw-r--r-- | rts/sm/NonMoving.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rts/sm/NonMoving.c b/rts/sm/NonMoving.c index 80b586a92c..5a22f7ca86 100644 --- a/rts/sm/NonMoving.c +++ b/rts/sm/NonMoving.c @@ -1087,10 +1087,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); |
