mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 10:45:42 +00:00
Bug 891436 - Skip heap walk for profilingScripts during minor GC; r=billm
--HG-- extra : rebase_source : acc76b0b299412c420c7fcc4cc3dc269b82cbeb8
This commit is contained in:
parent
b002b30b2a
commit
15a3c7b62f
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user