Bug 891436 - Skip heap walk for profilingScripts during minor GC; r=billm

--HG--
extra : rebase_source : acc76b0b299412c420c7fcc4cc3dc269b82cbeb8
This commit is contained in:
Terrence Cole 2013-07-09 14:37:08 -07:00
parent b002b30b2a
commit 15a3c7b62f

View File

@ -713,7 +713,7 @@ js::gc::MarkRuntime(JSTracer *trc, bool useSavedRoots)
} }
/* Do not discard scripts with counts while profiling. */ /* Do not discard scripts with counts while profiling. */
if (rt->profilingScripts) { if (rt->profilingScripts && !rt->isHeapMinorCollecting()) {
for (CellIterUnderGC i(zone, FINALIZE_SCRIPT); !i.done(); i.next()) { for (CellIterUnderGC i(zone, FINALIZE_SCRIPT); !i.done(); i.next()) {
JSScript *script = i.get<JSScript>(); JSScript *script = i.get<JSScript>();
if (script->hasScriptCounts) { if (script->hasScriptCounts) {