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:
a3a3310
)
[project @ 2005-10-12 12:57:23 by simonmar]
author
simonmar
<unknown>
Wed, 12 Oct 2005 12:57:23 +0000
(12:57 +0000)
committer
simonmar
<unknown>
Wed, 12 Oct 2005 12:57:23 +0000
(12:57 +0000)
checkHeap: just return on SMP, we can't do heap sanity checking
because we can't zero slop words safely.
ghc/rts/Sanity.c
patch
|
blob
|
history
diff --git
a/ghc/rts/Sanity.c
b/ghc/rts/Sanity.c
index
ae40bbe
..
43200d2
100644
(file)
--- a/
ghc/rts/Sanity.c
+++ b/
ghc/rts/Sanity.c
@@
-547,6
+547,12
@@
checkHeap(bdescr *bd)
{
StgPtr p;
+#if defined(SMP)
+ // heap sanity checking doesn't work with SMP, because we can't
+ // zero the slop (see Updates.h).
+ return;
+#endif
+
for (; bd != NULL; bd = bd->link) {
p = bd->start;
while (p < bd->free) {