mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 888898 - Avoid shutdown leaks with PC count profiling (r=bhackett)
This commit is contained in:
parent
676069b2bc
commit
5f588a74e9
@ -713,7 +713,7 @@ js::gc::MarkRuntime(JSTracer *trc, bool useSavedRoots)
|
||||
}
|
||||
|
||||
/* Do not discard scripts with counts while profiling. */
|
||||
if (rt->profilingScripts && !rt->isHeapMinorCollecting()) {
|
||||
if (rt->profilingScripts && rt->hasContexts() && !rt->isHeapMinorCollecting()) {
|
||||
for (CellIterUnderGC i(zone, FINALIZE_SCRIPT); !i.done(); i.next()) {
|
||||
JSScript *script = i.get<JSScript>();
|
||||
if (script->hasScriptCounts) {
|
||||
|
Loading…
Reference in New Issue
Block a user