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:
5bb6573
)
check for ThreadRelocated in checkBlackHoles()
author
Simon Marlow
<marlowsd@gmail.com>
Thu, 26 Mar 2009 14:03:43 +0000
(14:03 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Thu, 26 Mar 2009 14:03:43 +0000
(14:03 +0000)
rts/Schedule.c
patch
|
blob
|
history
diff --git
a/rts/Schedule.c
b/rts/Schedule.c
index
636b517
..
141c973
100644
(file)
--- a/
rts/Schedule.c
+++ b/
rts/Schedule.c
@@
-2544,6
+2544,10
@@
checkBlackHoles (Capability *cap)
prev = &blackhole_queue;
t = blackhole_queue;
while (t != END_TSO_QUEUE) {
+ if (t->what_next == ThreadRelocated) {
+ t = t->_link;
+ continue;
+ }
ASSERT(t->why_blocked == BlockedOnBlackHole);
type = get_itbl(UNTAG_CLOSURE(t->block_info.closure))->type;
if (type != BLACKHOLE && type != CAF_BLACKHOLE) {