diff --git a/js/src/gc/RootMarking.cpp b/js/src/gc/RootMarking.cpp index 70a19188ebe..e382b3a747b 100644 --- a/js/src/gc/RootMarking.cpp +++ b/js/src/gc/RootMarking.cpp @@ -771,7 +771,7 @@ js::gc::MarkRuntime(JSTracer *trc, bool useSavedRoots) /* During GC, we don't mark gray roots at this stage. */ if (JSTraceDataOp op = rt->gcGrayRootTracer.op) { - if (!IS_GC_MARKING_TRACER(trc)) + if (!IS_GC_MARKING_TRACER(trc) && !trc->runtime->isHeapMinorCollecting()) (*op)(trc, rt->gcGrayRootTracer.data); } }