зеркало из https://github.com/mozilla/gecko-dev.git
Bug 891436 - Skip heap walk for profilingScripts during minor GC; r=billm
--HG-- extra : rebase_source : acc76b0b299412c420c7fcc4cc3dc269b82cbeb8
This commit is contained in:
Родитель
b002b30b2a
Коммит
15a3c7b62f
|
@ -713,7 +713,7 @@ js::gc::MarkRuntime(JSTracer *trc, bool useSavedRoots)
|
|||
}
|
||||
|
||||
/* 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()) {
|
||||
JSScript *script = i.get<JSScript>();
|
||||
if (script->hasScriptCounts) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче