зеркало из https://github.com/mozilla/gecko-dev.git
Bug 951285 - Don't check thread safety of Ion compilation when profiling scripts, r=jandem.
This commit is contained in:
Родитель
0dc4460fb2
Коммит
3a41273f10
|
@ -1736,7 +1736,12 @@ IonCompile(JSContext *cx, JSScript *script,
|
|||
}
|
||||
|
||||
Maybe<AutoEnterIonCompilation> ionCompiling;
|
||||
ionCompiling.construct();
|
||||
if (!cx->runtime()->profilingScripts) {
|
||||
// Compilation with script profiling is only done on the main thread,
|
||||
// and may modify scripts directly, so don't watch for proper use of
|
||||
// the compilation lock.
|
||||
ionCompiling.construct();
|
||||
}
|
||||
|
||||
Maybe<AutoProtectHeapForIonCompilation> protect;
|
||||
if (js_JitOptions.checkThreadSafety &&
|
||||
|
@ -1761,7 +1766,8 @@ IonCompile(JSContext *cx, JSScript *script,
|
|||
|
||||
if (!protect.empty())
|
||||
protect.destroy();
|
||||
ionCompiling.destroy();
|
||||
if (!ionCompiling.empty())
|
||||
ionCompiling.destroy();
|
||||
|
||||
bool success = codegen->link(cx, builder->constraints());
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче