projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed warnings in basicTypes/OccName
[ghc-hetmet.git]
/
rts
/
Sanity.c
diff --git
a/rts/Sanity.c
b/rts/Sanity.c
index
a2ddff8
..
25a76c0
100644
(file)
--- a/
rts/Sanity.c
+++ b/
rts/Sanity.c
@@
-235,6
+235,9
@@
checkPAP (StgClosure *fun, StgClosure** payload, StgWord n_args)
n_args );
break;
}
n_args );
break;
}
+
+ ASSERT(fun_info->f.arity > TAG_MASK ? GET_CLOSURE_TAG(fun) == 1
+ : GET_CLOSURE_TAG(fun) == fun_info->f.arity);
}
}
@@
-256,7
+259,8
@@
checkClosure( StgClosure* p )
info = get_itbl(p);
switch (info->type) {
info = get_itbl(p);
switch (info->type) {
- case MVAR:
+ case MVAR_CLEAN:
+ case MVAR_DIRTY:
{
StgMVar *mvar = (StgMVar *)p;
ASSERT(LOOKS_LIKE_CLOSURE_PTR(mvar->head));
{
StgMVar *mvar = (StgMVar *)p;
ASSERT(LOOKS_LIKE_CLOSURE_PTR(mvar->head));