Commit 45881ab5 authored by Simon Marlow's avatar Simon Marlow
Browse files

Fix +RTS -G1

parent c279f61e
......@@ -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);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment