From 3b22308eee5669f7c59d1063b745d9349d1c4efe Mon Sep 17 00:00:00 2001 From: Jon Coppeard Date: Tue, 23 Jul 2013 10:58:26 +0100 Subject: [PATCH] Bug 888338 - 3 - don't call gray root tracer for minor GCs r=terrence --- js/src/gc/RootMarking.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }