Bug 846590 - Do not poison when GC suppressed. r=terrence

This commit is contained in:
Steve Fink 2013-03-05 15:36:23 -08:00
parent 2cde4c923b
commit c5b6d6e750

View File

@ -232,6 +232,9 @@ JS::CheckStackRoots(JSContext *cx)
if (cx->compartment->activeAnalysis)
return;
if (rt->mainThread.suppressGC)
return;
// Can switch to the atoms compartment during analysis.
if (IsAtomsCompartment(cx->compartment)) {
for (CompartmentsIter c(rt); !c.done(); c.next()) {