From: Simon Marlow Date: Wed, 5 Nov 2008 15:49:28 +0000 (+0000) Subject: don't yield the Capability if blackholes_need_checking X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=904addb860eab8d1d46cea0994b67485be1c8890;p=ghc-hetmet.git don't yield the Capability if blackholes_need_checking --- diff --git a/rts/Schedule.c b/rts/Schedule.c index 569c3d0..ca6e426 100644 --- a/rts/Schedule.c +++ b/rts/Schedule.c @@ -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)) return; // otherwise yield (sleep), and keep yielding if necessary.