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:
Olli Pettay 2019-05-03 18:44:14 +00:00
parent 622f5f795e
commit e217c0e5c8

View File

@ -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;