зеркало из https://github.com/mozilla/pjs.git
[INFER] On destruction, release JIT code for scripts before debugger hooks try to recompile them, bug 679461.
This commit is contained in:
Родитель
1cd26fbe4d
Коммит
16c51082fc
|
@ -1359,6 +1359,10 @@ js_CallDestroyScriptHook(JSContext *cx, JSScript *script)
|
|||
{
|
||||
JSDestroyScriptHook hook;
|
||||
|
||||
#ifdef JS_METHODJIT
|
||||
mjit::ReleaseScriptCode(cx, script);
|
||||
#endif
|
||||
|
||||
hook = cx->debugHooks->destroyScriptHook;
|
||||
if (hook)
|
||||
hook(cx, script, cx->debugHooks->destroyScriptHookData);
|
||||
|
|
Загрузка…
Ссылка в новой задаче