Commit deda5eaa authored by simonmar's avatar simonmar
Browse files

[project @ 2005-07-26 15:16:40 by simonmar]

Avoid recording objects in the mutable list of generation 0 (bug
introduced on the HEAD recently, it seems)
parent f3c86836
......@@ -3063,9 +3063,11 @@ scavenge(step *stp)
*/
if (failed_to_evac) {
failed_to_evac = rtsFalse;
if (stp->gen_no > 0) {
recordMutableGen((StgClosure *)q, stp->gen);
}
}
}
stp->scan_bd = bd;
stp->scan = p;
......@@ -3400,8 +3402,10 @@ linear_scan:
if (failed_to_evac) {
failed_to_evac = rtsFalse;
if (evac_gen > 0) {
recordMutableGen((StgClosure *)q, &generations[evac_gen]);
}
}
// mark the next bit to indicate "scavenged"
mark(q+1, Bdescr(q));
......@@ -4075,9 +4079,11 @@ scavenge_large(step *stp)
p = bd->start;
if (scavenge_one(p)) {
if (stp->gen_no > 0) {
recordMutableGen((StgClosure *)p, stp->gen);
}
}
}
}
/* -----------------------------------------------------------------------------
......
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