mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 23:05:42 +00:00
Bug 846590 - Do not poison when GC suppressed. r=terrence
This commit is contained in:
parent
31ac31da1c
commit
d259f13b64
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user