Bug 1932394 - Don't run full GC if there is a CC ongoing, r=jonco

Differential Revision: https://phabricator.services.mozilla.com/D229632
This commit is contained in:
Olli Pettay 2024-11-20 21:45:25 +00:00
parent 8ad187f37c
commit fe9c5e70cc

View File

@ -474,7 +474,9 @@ void CCGCScheduler::PokeFullGC() {
// set that we want a full GC we will get one eventually.
s->SetNeedsFullGC();
s->SetWantMajorGC(JS::GCReason::FULL_GC_TIMER);
if (!s->mHaveAskedParent) {
if (s->mCCRunner) {
s->EnsureCCThenGC(CCReason::GC_WAITING);
} else if (!s->mHaveAskedParent) {
s->EnsureGCRunner(0);
}
},