From a61f66d6c14762869ad95b7646bce975df9f80f8 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Tue, 1 Oct 2019 17:37:14 +0000 Subject: rts/CNF: Initialize all bdescrs in group It seems wise and cheap to ensure that the whole bdescr of all blocks of a compact group is valid, even if most cases only look at the flags field. --- rts/sm/CNF.c | 1 + 1 file changed, 1 insertion(+) (limited to 'rts/sm') diff --git a/rts/sm/CNF.c b/rts/sm/CNF.c index 2c701c2c29..31b3cb99f2 100644 --- a/rts/sm/CNF.c +++ b/rts/sm/CNF.c @@ -245,6 +245,7 @@ compactAllocateBlockInternal(Capability *cap, initBdescr(head, g, g); head->flags = BF_COMPACT; for (block = head + 1, n_blocks --; n_blocks > 0; block++, n_blocks--) { + initBdescr(block, g, g); block->link = head; block->blocks = 0; block->flags = BF_COMPACT; -- cgit v1.2.1