force a major GC whenever the tenured fixed object footprint doubles

This commit is contained in:
Joel Dice 2008-01-09 08:21:58 -07:00
parent 1a79fc45df
commit 633990b5fe

View File

@ -738,11 +738,9 @@ sweepFixies(Context* c)
f->marked = false;
}
if (c->tenuredFixieCeiling > c->tenuredFixieFootprint * 4) {
c->tenuredFixieCeiling = max
(c->tenuredFixieCeiling / 2,
InitialTenuredFixieCeilingInBytes / BytesPerWord);
}
c->tenuredFixieCeiling = max
(c->tenuredFixieFootprint * 2,
InitialTenuredFixieCeilingInBytes / BytesPerWord);
}
inline void*
@ -1429,10 +1427,6 @@ collect(Context* c, unsigned footprint)
initNextGen1(c, footprint);
if (c->mode == Heap::MajorCollection) {
c->tenuredFixieCeiling = max
((c->fixieTenureFootprint + c->tenuredFixieFootprint) * 2,
InitialTenuredFixieCeilingInBytes / BytesPerWord);
initNextGen2(c);
}