From 4eb9d06b00043e52be3cf828ccb92f0bb4c9e438 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Wed, 8 Feb 2023 12:07:57 -0500 Subject: nonmoving: Ensure that sanity checker accounts for saved_filled segments --- rts/sm/Sanity.c | 1 + 1 file changed, 1 insertion(+) (limited to 'rts') diff --git a/rts/sm/Sanity.c b/rts/sm/Sanity.c index a8cf074989..fa497251e2 100644 --- a/rts/sm/Sanity.c +++ b/rts/sm/Sanity.c @@ -1199,6 +1199,7 @@ countNonMovingHeap(struct NonmovingHeap *heap) for (int alloc_idx = 0; alloc_idx < NONMOVING_ALLOCA_CNT; alloc_idx++) { struct NonmovingAllocator *alloc = &heap->allocators[alloc_idx]; ret += countNonMovingSegments(alloc->filled); + ret += countNonMovingSegments(alloc->saved_filled); ret += countNonMovingSegments(alloc->active); for (uint32_t c = 0; c < getNumCapabilities(); ++c) { Capability *cap = getCapability(c); -- cgit v1.2.1