diff options
author | Ben Gamari <ben@smart-cactus.org> | 2023-02-08 12:07:57 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2023-04-12 07:56:29 -0400 |
commit | 15942d2909c8caf928a40005977b292f3d8f4948 (patch) | |
tree | 91fadafd58013f4cca85f6453b89d6ff3ee0a741 | |
parent | 85232bb712f8d58524ebd0ba77f508862b1a316b (diff) | |
download | haskell-15942d2909c8caf928a40005977b292f3d8f4948.tar.gz |
nonmoving: Ensure that sanity checker accounts for saved_filled segments
(cherry picked from commit 7cc7461c74bf78aca0987c8e8e0ec48297c28f2c)
-rw-r--r-- | rts/sm/Sanity.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rts/sm/Sanity.c b/rts/sm/Sanity.c index 2243424fcd..1357e38944 100644 --- a/rts/sm/Sanity.c +++ b/rts/sm/Sanity.c @@ -1182,6 +1182,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); |