projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6396ce
)
sanity: fix places where we weren't filling fresh memory with 0xaa
author
Simon Marlow
<marlowsd@gmail.com>
Fri, 29 Oct 2010 09:28:43 +0000
(09:28 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Fri, 29 Oct 2010 09:28:43 +0000
(09:28 +0000)
rts/sm/BlockAlloc.c
patch
|
blob
|
history
diff --git
a/rts/sm/BlockAlloc.c
b/rts/sm/BlockAlloc.c
index
f0f786b
..
429ebd0
100644
(file)
--- 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;