mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Don't try to recompile scripts when clearing traps during GC, bug 683966.
This commit is contained in:
parent
4c2126dce8
commit
799c6dfea0
@ -225,7 +225,10 @@ BreakpointSite::clearTrap(JSContext *cx, BreakpointSiteMap::Enum *e,
|
||||
trapClosure.setUndefined();
|
||||
if (enabledCount == 0) {
|
||||
*pc = realOpcode;
|
||||
if (!cx->runtime->gcRunning) {
|
||||
/* If the GC is running then the script is being destroyed. */
|
||||
recompile(cx, true); /* ignore failure */
|
||||
}
|
||||
destroyIfEmpty(cx->runtime, e);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user