mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 848849 - Reset script use count when type information changes. r=bhackett
This commit is contained in:
parent
10a8f6f65b
commit
ed8edaffaf
@ -2899,6 +2899,9 @@ TypeCompartment::addPendingRecompile(JSContext *cx, RawScript script, jsbytecode
|
||||
# ifdef JS_ION
|
||||
CancelOffThreadIonCompile(cx->compartment, script);
|
||||
|
||||
// Let the script warm up again before attempting another compile.
|
||||
script->resetUseCount();
|
||||
|
||||
if (script->hasIonScript())
|
||||
addPendingRecompile(cx, script->ionScript()->recompileInfo());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user