зеркало из https://github.com/mozilla/gecko-dev.git
Bug 820378 - Try to postpone triggering CC if we're in middle of GC handling, r=mccr8
This commit is contained in:
Родитель
7eab66f71e
Коммит
c8654afcdc
|
@ -3308,6 +3308,12 @@ CCTimerFired(nsITimer *aTimer, void *aClosure)
|
|||
|
||||
PRTime now = PR_Now();
|
||||
if (sCCLockedOutTime == 0) {
|
||||
// Reset sCCTimerFireCount so that we run forgetSkippable
|
||||
// often enough before CC. Because of reduced ccDelay
|
||||
// forgetSkippable will be called just a few times.
|
||||
// NS_MAX_CC_LOCKEDOUT_TIME limit guarantees that we end up calling
|
||||
// forgetSkippable and CycleCollectNow eventually.
|
||||
sCCTimerFireCount = 0;
|
||||
sCCLockedOutTime = now;
|
||||
return;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче