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
Shayne Fletcher
Glasgow Haskell Compiler
Commits
840eb5b9
Commit
840eb5b9
authored
Nov 05, 2008
by
Simon Marlow
Browse files
retreat the top/bottom fields of the spark pool in pruneSparkPool()
parent
426b9e61
Changes
1
Hide whitespace changes
Inline
Side-by-side
rts/Sparks.c
View file @
840eb5b9
...
...
@@ -387,6 +387,13 @@ pruneSparkQueue (evac_fn evac, void *user, Capability *cap)
pool
=
cap
->
sparks
;
// Take this opportunity to reset top/bottom modulo the size of
// the array, to avoid overflow. This is only possible because no
// stealing is happening during GC.
pool
->
bottom
-=
pool
->
top
&
~
pool
->
moduloSize
;
pool
->
top
&=
pool
->
moduloSize
;
pool
->
topBound
=
pool
->
top
;
debugTrace
(
DEBUG_sched
,
"markSparkQueue: current spark queue len=%d; (hd=%ld; tl=%ld)"
,
sparkPoolSize
(
pool
),
pool
->
bottom
,
pool
->
top
);
...
...
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