summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2010-10-29 09:28:43 +0000
committerSimon Marlow <marlowsd@gmail.com>2010-10-29 09:28:43 +0000
commit7267a7862cc406e593c89e79a4d5ab064ac40120 (patch)
tree20e8f549f45485ddd0c997c74f7648648b152356
parente6396ceaf29d592785944ca9f4086595d1137836 (diff)
downloadhaskell-7267a7862cc406e593c89e79a4d5ab064ac40120.tar.gz
sanity: fix places where we weren't filling fresh memory with 0xaa
-rw-r--r--rts/sm/BlockAlloc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/rts/sm/BlockAlloc.c b/rts/sm/BlockAlloc.c
index f0f786b105..429ebd03ad 100644
--- a/rts/sm/BlockAlloc.c
+++ b/rts/sm/BlockAlloc.c
@@ -333,6 +333,7 @@ allocGroup (nat n)
// only the bdescrs of the first MB are required to be initialised
initGroup(bd);
+ IF_DEBUG(sanity,memset(bd->start, 0xaa, bd->blocks * BLOCK_SIZE));
IF_DEBUG(sanity, checkFreeListSanity());
return bd;
}
@@ -382,6 +383,7 @@ allocGroup (nat n)
barf("allocGroup: free list corrupted");
}
initGroup(bd); // initialise it
+ IF_DEBUG(sanity,memset(bd->start, 0xaa, bd->blocks * BLOCK_SIZE));
IF_DEBUG(sanity, checkFreeListSanity());
ASSERT(bd->blocks == n);
return bd;