Bug 820378 - Try to postpone triggering CC if we're in middle of GC handling, r=mccr8

This commit is contained in:
Olli Pettay 2013-01-08 13:11:01 +02:00
parent 508a8856ed
commit 8fce433824

View File

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