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:
218c7fe
)
findSpark: exit if there's a returning foreign call
author
Simon Marlow
<marlowsd@gmail.com>
Fri, 9 Oct 2009 15:29:20 +0000
(15:29 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Fri, 9 Oct 2009 15:29:20 +0000
(15:29 +0000)
rts/Capability.c
patch
|
blob
|
history
diff --git
a/rts/Capability.c
b/rts/Capability.c
index
8cfcba0
..
9294949
100644
(file)
--- a/
rts/Capability.c
+++ b/
rts/Capability.c
@@
-77,7
+77,7
@@
findSpark (Capability *cap)
rtsBool retry;
nat i = 0;
- if (!emptyRunQueue(cap)) {
+ if (!emptyRunQueue(cap) || cap->returning_tasks_hd != NULL) {
// If there are other threads, don't try to run any new
// sparks: sparks might be speculative, we don't want to take
// resources away from the main computation.