Bug 1772638 - make nsJSContext::MaybePokeGC trigger EAGER_ALLOC_TRIGGER major GCs

Differential Revision: https://phabricator.services.mozilla.com/D152950
This commit is contained in:
Steve Fink 2022-07-27 23:03:28 +00:00
Родитель 07e0016fe5
Коммит 8ed65b842f
1 изменённых файлов: 4 добавлений и 4 удалений

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

@ -1703,10 +1703,10 @@ void nsJSContext::MaybePokeGC() {
MOZ_ASSERT(reason == JS::GCReason::EAGER_NURSERY_COLLECTION);
sScheduler.PokeMinorGC(reason);
}
// 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.
reason = JS::WantEagerMajorGC(rt);
if (reason != JS::GCReason::NO_REASON) {
PokeGC(reason, nullptr, 0);
}
}
void nsJSContext::DoLowMemoryGC() {