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
parent b3d03a560b
commit e7cd320eb1

View File

@@ -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) {