Commit cd2773d8 authored by Simon Marlow's avatar Simon Marlow
Browse files

comment-out an incorrect assertion

parent 3b97d0d0
......@@ -394,7 +394,10 @@ releaseCapability_ (Capability* cap,
// give this Capability to the appropriate Task.
if (!emptyRunQueue(cap) && cap->run_queue_hd->bound) {
// Make sure we're not about to try to wake ourselves up
ASSERT(task != cap->run_queue_hd->bound);
// 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;
giveCapabilityToTask(cap,task);
return;
......
Supports Markdown
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