Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
dad78475
Commit
dad78475
authored
Jun 17, 2008
by
Simon Marlow
Browse files
small interpreter fix
parent
301afae5
Changes
1
Hide whitespace changes
Inline
Side-by-side
rts/Schedule.c
View file @
dad78475
...
...
@@ -550,8 +550,6 @@ schedule (Capability *initialCapability, Task *task)
}
#endif
cap
->
r
.
rCurrentTSO
=
t
;
/* context switches are initiated by the timer signal, unless
* the user specified "context switch as often as possible", with
* +RTS -C0
...
...
@@ -563,6 +561,11 @@ schedule (Capability *initialCapability, Task *task)
run_thread:
// CurrentTSO is the thread to run. t might be different if we
// loop back to run_thread, so make sure to set CurrentTSO after
// that.
cap
->
r
.
rCurrentTSO
=
t
;
debugTrace
(
DEBUG_sched
,
"-->> running thread %ld %s ..."
,
(
long
)
t
->
id
,
whatNext_strs
[
t
->
what_next
]);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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