mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 10:44:56 +00:00
Bug 1548827, let CC to run sooner after GC, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D29864 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
622f5f795e
commit
e217c0e5c8
@ -2059,7 +2059,8 @@ void nsJSContext::MaybePokeCC() {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!sLastCCEndTime.IsNull()) {
|
||||
// Don't run consecutive CCs too often.
|
||||
if (sCleanupsSinceLastGC && !sLastCCEndTime.IsNull()) {
|
||||
uint32_t sinceLastCCEnd = TimeUntilNow(sLastCCEndTime);
|
||||
if (sinceLastCCEnd < NS_CC_DELAY) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user