зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1018397 - Start an ICC timer even if ICC is globally disabled. r=smaug
This commit is contained in:
Родитель
4d45062daf
Коммит
c8382f50c3
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче