Commit ac3efabf authored by Simon Marlow's avatar Simon Marlow
Browse files

fix for dirty_MUT_VAR: don't try to recordMutableCap in gen 0

parent a5bd0560
......@@ -769,9 +769,11 @@ void
dirty_MUT_VAR(StgRegTable *reg, StgClosure *p)
{
Capability *cap = regTableToCapability(reg);
bdescr *bd;
if (p->header.info == &stg_MUT_VAR_CLEAN_info) {
p->header.info = &stg_MUT_VAR_DIRTY_info;
recordMutableCap(p,cap,Bdescr(p)->gen_no);
bd = Bdescr(p);
if (bd->gen_no > 0) recordMutableCap(p,cap,bd->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