Bug 979047, part 3 - Make sure we trigger a GC after a current ICC when we poke the GC. r=smaug

This commit is contained in:
Andrew McCreight 2014-03-04 16:21:48 -08:00
Родитель 6246ff9e19
Коммит 4fa61d549b
1 изменённых файлов: 7 добавлений и 0 удалений

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

@ -2504,6 +2504,13 @@ nsJSContext::PokeGC(JS::gcreason::Reason aReason, int aDelay)
return;
}
if (sICCTimer) {
// Make sure GC is called after the current CC completes.
// No need to set sNeedsFullCC because we are currently running a CC.
sNeedsGCAfterCC = true;
return;
}
CallCreateInstance("@mozilla.org/timer;1", &sGCTimer);
if (!sGCTimer) {