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:
c279f61
)
Fix +RTS -G1
author
Simon Marlow
<marlowsd@gmail.com>
Thu, 6 May 2010 11:07:39 +0000
(11:07 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Thu, 6 May 2010 11:07:39 +0000
(11:07 +0000)
rts/sm/Storage.c
patch
|
blob
|
history
diff --git
a/rts/sm/Storage.c
b/rts/sm/Storage.c
index
c2a1911
..
34cdab1
100644
(file)
--- a/
rts/sm/Storage.c
+++ b/
rts/sm/Storage.c
@@
-290,7
+290,9
@@
newCAF(StgRegTable *reg, StgClosure* caf)
{
// Put this CAF on the mutable list for the old generation.
((StgIndStatic *)caf)->saved_info = NULL;
- recordMutableCap(caf, regTableToCapability(reg), oldest_gen->no);
+ if (oldest_gen->no != 0) {
+ recordMutableCap(caf, regTableToCapability(reg), oldest_gen->no);
+ }
}
}