Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alfredo Di Napoli
GHC
Commits
cd2773d8
Commit
cd2773d8
authored
Jan 26, 2010
by
Simon Marlow
Browse files
comment-out an incorrect assertion
parent
3b97d0d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
rts/Capability.c
View file @
cd2773d8
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment