diff options
Diffstat (limited to 'rts/sm/HeapUtils.h')
-rw-r--r-- | rts/sm/HeapUtils.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rts/sm/HeapUtils.h b/rts/sm/HeapUtils.h index 2e9ca34f73..aa3321e5dc 100644 --- a/rts/sm/HeapUtils.h +++ b/rts/sm/HeapUtils.h @@ -17,6 +17,10 @@ walk_large_bitmap(walk_closures_cb *cb, StgWord size, void *user) { + // Bitmap may have more bits than `size` when scavenging PAP payloads. See + // comments around StgPAP. + ASSERT(large_bitmap->size >= size); + uint32_t b = 0; for (uint32_t i = 0; i < size; b++) { |