Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
e6218fe7
Commit
e6218fe7
authored
Mar 17, 2006
by
Simon Marlow
Browse files
forkProcess(): watch out for ThreadRelocated
parent
df85c4b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/rts/Schedule.c
View file @
e6218fe7
...
...
@@ -2149,11 +2149,15 @@ forkProcess(HsStablePtr *entry
// now gone.
for
(
t
=
all_threads
;
t
!=
END_TSO_QUEUE
;
t
=
next
)
{
next
=
t
->
global_link
;
// don't allow threads to catch the ThreadKilled
// exception, but we do want to raiseAsync() because these
// threads may be evaluating thunks that we need later.
deleteThread_
(
cap
,
t
);
if
(
t
->
what_next
==
ThreadRelocated
)
{
next
=
t
->
link
;
}
else
{
next
=
t
->
global_link
;
// don't allow threads to catch the ThreadKilled
// exception, but we do want to raiseAsync() because these
// threads may be evaluating thunks that we need later.
deleteThread_
(
cap
,
t
);
}
}
// Empty the run queue. It seems tempting to let all the
...
...
Write
Preview
Markdown
is supported
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