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
Родитель 7eab66f71e
Коммит c8654afcdc
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

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