summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2022-10-22 21:15:24 +0000
committerBen Gamari <ben@smart-cactus.org>2023-04-12 07:43:40 -0400
commite769c4abff6ab87736c1424079033d94dbaa5d7c (patch)
treecc29c0b3fbcca14703a783dd0fa7776adc3e2489
parentf97830cb572018461a18f9748e5ba05f920591d3 (diff)
downloadhaskell-e769c4abff6ab87736c1424079033d94dbaa5d7c.tar.gz
nonmoving: Fix tracking of FILLED_SWEEPING segments
Previously we only updated the state of the segment at the head of each allocator's filled list. (cherry picked from commit 4392965d14920117db2cf4ce460dec6f094f6dfe)
-rw-r--r--rts/sm/NonMoving.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/sm/NonMoving.c b/rts/sm/NonMoving.c
index b7dc8b6ac2..405d365dc6 100644
--- a/rts/sm/NonMoving.c
+++ b/rts/sm/NonMoving.c
@@ -1074,6 +1074,7 @@ static void nonmovingMark_(MarkQueue *mark_queue, StgWeak **dead_weaks, StgTSO *
while (true) {
// Set snapshot
nonmovingSegmentInfo(seg)->next_free_snap = seg->next_free;
+ SET_SEGMENT_STATE(seg, FILLED_SWEEPING);
n_filled++;
if (seg->link) {
seg = seg->link;
@@ -1082,7 +1083,6 @@ static void nonmovingMark_(MarkQueue *mark_queue, StgWeak **dead_weaks, StgTSO *
}
}
// add filled segments to sweep_list
- SET_SEGMENT_STATE(seg, FILLED_SWEEPING);
seg->link = nonmovingHeap.sweep_list;
nonmovingHeap.sweep_list = filled;
}