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
Tobias Decking
GHC
Commits
f74aec1b
Commit
f74aec1b
authored
Apr 27, 2005
by
simonmar
Browse files
[project @ 2005-04-27 12:54:45 by simonmar]
Some extra sanity checking
parent
ef59d3c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/rts/Schedule.c
View file @
f74aec1b
...
...
@@ -476,6 +476,15 @@ schedule( StgMainThread *mainThread USED_WHEN_RTS_SUPPORTS_THREADS,
// We now have a capability...
#endif
#if 0 /* extra sanity checking */
{
StgMainThread *m;
for (m = main_threads; m != NULL; m = m->link) {
ASSERT(get_itbl(m->tso)->type == TSO);
}
}
#endif
// Check whether we have re-entered the RTS from Haskell without
// going via suspendThread()/resumeThread (i.e. a 'safe' foreign
...
...
@@ -1819,6 +1828,7 @@ scheduleHandleThreadFinished( StgMainThread *mainThread
removeThreadLabel
((
StgWord
)
mainThread
->
tso
->
id
);
#endif
if
(
mainThread
->
prev
==
NULL
)
{
ASSERT
(
mainThread
==
main_threads
);
main_threads
=
mainThread
->
link
;
}
else
{
mainThread
->
prev
->
link
=
mainThread
->
link
;
...
...
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