mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 04:41:11 +00:00
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:
parent
8ad187f37c
commit
fe9c5e70cc
@ -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);
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user