projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ebf1a6
)
Only allocate a mark stack if we're actually doing marking
author
Simon Marlow
<marlowsd@gmail.com>
Wed, 12 Nov 2008 11:21:44 +0000
(11:21 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Wed, 12 Nov 2008 11:21:44 +0000
(11:21 +0000)
saves a bit of memory in major GCs
rts/sm/GC.c
patch
|
blob
|
history
diff --git
a/rts/sm/GC.c
b/rts/sm/GC.c
index
5cd1298
..
aff3320
100644
(file)
--- a/
rts/sm/GC.c
+++ b/
rts/sm/GC.c
@@
-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);