Commit 904addb8 authored by Simon Marlow's avatar Simon Marlow
Browse files

don't yield the Capability if blackholes_need_checking

parent 4760739d
......@@ -714,7 +714,8 @@ scheduleYield (Capability **pcap, Task *task)
Capability *cap = *pcap;
// if we have work, and we don't need to give up the Capability, continue.
if (!emptyRunQueue(cap) && !shouldYieldCapability(cap,task))
if (!shouldYieldCapability(cap,task) &&
(!emptyRunQueue(cap) || blackholes_need_checking))
// otherwise yield (sleep), and keep yielding if necessary.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment