Don't call GC or CC unexpectedly during shutdown (bug 635251, r/a=gal). (relanding in a CLOSED TREE)

This commit is contained in:
Olli.Pettay@gmail.com 2011-02-20 00:20:14 -08:00
parent 355d67127f
commit ee8057dfaa

View File

@ -3365,8 +3365,6 @@ nsJSContext::PokeGC()
if (!sGCTimer) { if (!sGCTimer) {
NS_WARNING("Failed to create timer"); NS_WARNING("Failed to create timer");
GarbageCollectNow();
return; return;
} }
@ -3403,8 +3401,6 @@ nsJSContext::PokeCC()
if (!sCCTimer) { if (!sCCTimer) {
NS_WARNING("Failed to create timer"); NS_WARNING("Failed to create timer");
CycleCollectNow();
return; return;
} }