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:
20fcaab
)
Fix bug in popRunQueue
author
Simon Marlow
<marlowsd@gmail.com>
Tue, 6 Apr 2010 09:14:53 +0000
(09:14 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Tue, 6 Apr 2010 09:14:53 +0000
(09:14 +0000)
rts/Schedule.h
patch
|
blob
|
history
diff --git
a/rts/Schedule.h
b/rts/Schedule.h
index
1e786ce
..
7760e36
100644
(file)
--- a/
rts/Schedule.h
+++ b/
rts/Schedule.h
@@
-155,7
+155,9
@@
popRunQueue (Capability *cap)
StgTSO *t = cap->run_queue_hd;
ASSERT(t != END_TSO_QUEUE);
cap->run_queue_hd = t->_link;
- cap->run_queue_hd->block_info.prev = END_TSO_QUEUE;
+ if (t->_link != END_TSO_QUEUE) {
+ t->_link->block_info.prev = END_TSO_QUEUE;
+ }
t->_link = END_TSO_QUEUE; // no write barrier req'd
if (cap->run_queue_hd == END_TSO_QUEUE) {
cap->run_queue_tl = END_TSO_QUEUE;