diff options
Diffstat (limited to 'rts/Capability.c')
-rw-r--r-- | rts/Capability.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rts/Capability.c b/rts/Capability.c index d02c34d311..811df582a8 100644 --- a/rts/Capability.c +++ b/rts/Capability.c @@ -472,13 +472,13 @@ releaseCapability_ (Capability* cap, // If the next thread on the run queue is a bound thread, // give this Capability to the appropriate Task. - if (!emptyRunQueue(cap) && cap->run_queue_hd->bound) { + if (!emptyRunQueue(cap) && peekRunQueue(cap)->bound) { // Make sure we're not about to try to wake ourselves up // ASSERT(task != cap->run_queue_hd->bound); // assertion is false: in schedule() we force a yield after // ThreadBlocked, but the thread may be back on the run queue // by now. - task = cap->run_queue_hd->bound->task; + task = peekRunQueue(cap)->bound->task; giveCapabilityToTask(cap, task); return; } |