Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
jberryman
GHC
Commits
376fad71
Commit
376fad71
authored
Nov 12, 2008
by
Simon Marlow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only allocate a mark stack if we're actually doing marking
saves a bit of memory in major GCs
parent
7ebf1a69
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
rts/sm/GC.c
rts/sm/GC.c
+1
-1
No files found.
rts/sm/GC.c
View file @
376fad71
...
...
@@ -289,7 +289,7 @@ GarbageCollect ( rtsBool force_major_gc )
/* Allocate a mark stack if we're doing a major collection.
*/
if
(
major_gc
)
{
if
(
major_gc
&&
oldest_gen
->
steps
[
0
].
mark
)
{
nat
mark_stack_blocks
;
mark_stack_blocks
=
stg_max
(
MARK_STACK_BLOCKS
,
oldest_gen
->
steps
[
0
].
n_old_blocks
/
100
);
...
...
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