Backed out changeset 8f85cd030fce (bug 1772638) for causing size and perf regressions

This commit is contained in:
Noemi Erli 2022-08-04 02:47:34 +03:00
Родитель 94a2f91823
Коммит 17a6c43999
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -1703,10 +1703,10 @@ void nsJSContext::MaybePokeGC() {
MOZ_ASSERT(reason == JS::GCReason::EAGER_NURSERY_COLLECTION);
sScheduler.PokeMinorGC(reason);
}
reason = JS::WantEagerMajorGC(rt);
if (reason != JS::GCReason::NO_REASON) {
PokeGC(reason, nullptr, 0);
}
// Bug 1772638: For now, only do eager minor GCs. Eager major GCs regress some
// benchmarks. Hopefully that will be worked out and this will check for
// whether an eager major GC is needed.
}
void nsJSContext::DoLowMemoryGC() {