зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1548355 - Tweak sLastCCEndTime handling to be able to check two tasks within < 1ms, r=mccr8
This commit is contained in:
Родитель
4c793a1728
Коммит
2d3a4fc4ab
|
@ -2059,9 +2059,11 @@ void nsJSContext::MaybePokeCC() {
|
|||
return;
|
||||
}
|
||||
|
||||
uint32_t sinceLastCCEnd = TimeUntilNow(sLastCCEndTime);
|
||||
if (sinceLastCCEnd && sinceLastCCEnd < NS_CC_DELAY) {
|
||||
return;
|
||||
if (!sLastCCEndTime.IsNull()) {
|
||||
uint32_t sinceLastCCEnd = TimeUntilNow(sLastCCEndTime);
|
||||
if (sinceLastCCEnd < NS_CC_DELAY) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// If GC hasn't run recently and forget skippable only cycle was run,
|
||||
|
|
Загрузка…
Ссылка в новой задаче