projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't sanity check the whole stack when switching interp<->compiled
[ghc-hetmet.git]
/
rts
/
Sanity.c
diff --git
a/rts/Sanity.c
b/rts/Sanity.c
index
49bbff7
..
4149d64
100644
(file)
--- a/
rts/Sanity.c
+++ b/
rts/Sanity.c
@@
-578,10
+578,13
@@
checkGlobalTSOList (rtsBool checkTSOs)
if (checkTSOs)
checkTSO(tso);
if (checkTSOs)
checkTSO(tso);
+ while (tso->what_next == ThreadRelocated) {
+ tso = tso->_link;
+ }
+
// If this TSO is dirty and in an old generation, it better
// be on the mutable list.
// If this TSO is dirty and in an old generation, it better
// be on the mutable list.
- if (tso->what_next == ThreadRelocated) continue;
- if (tso->flags & (TSO_DIRTY|TSO_LINK_DIRTY)) {
+ if (tso->dirty || (tso->flags & TSO_LINK_DIRTY)) {
ASSERT(Bdescr((P_)tso)->gen_no == 0 || (tso->flags & TSO_MARKED));
tso->flags &= ~TSO_MARKED;
}
ASSERT(Bdescr((P_)tso)->gen_no == 0 || (tso->flags & TSO_MARKED));
tso->flags &= ~TSO_MARKED;
}