Bug 1018397 - Start an ICC timer even if ICC is globally disabled. r=smaug

This commit is contained in:
Andrew McCreight 2014-11-13 07:11:55 -08:00
Родитель 4d45062daf
Коммит c8382f50c3
1 изменённых файлов: 2 добавлений и 4 удалений

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

@ -1785,10 +1785,8 @@ nsJSContext::BeginCycleCollectionCallback()
MOZ_ASSERT(!sICCTimer, "Tried to create a new ICC timer when one already existed.");
if (!sIncrementalCC) {
return;
}
// Create an ICC timer even if ICC is globally disabled, because we could be manually triggering
// an incremental collection, and we want to be sure to finish it.
CallCreateInstance("@mozilla.org/timer;1", &sICCTimer);
if (sICCTimer) {
sICCTimer->InitWithFuncCallback(ICCTimerFired,