!9410 [JIT] Fixed mutil thread check when get jit thread

Merge pull request !9410 from xiaoweidong/no_check_jit_thread
This commit is contained in:
openharmony_ci 2024-09-23 15:49:39 +00:00 committed by Gitee
commit 60410ef266
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 5 additions and 2 deletions

View File

@ -444,7 +444,9 @@ void Jit::Compile(EcmaVM *vm, JSHandle<JSFunction> &jsFunction, CompilerTier tie
{
JitTaskpool::GetCurrentTaskpool()->WaitForJitTaskPoolReady();
EcmaVM *compilerVm = JitTaskpool::GetCurrentTaskpool()->GetCompilerVm();
std::shared_ptr<JitTask> jitTask = std::make_shared<JitTask>(vm->GetJSThread(), compilerVm->GetJSThread(),
std::shared_ptr<JitTask> jitTask = std::make_shared<JitTask>(vm->GetJSThread(),
// avoid check fail when enable multi-thread check
compilerVm->GetJSThreadNoCheck(),
jit, jsFunction, tier, methodName, offset, vm->GetJSThread()->GetThreadId(), mode);
jitTask->PrepareCompile();

View File

@ -15,5 +15,6 @@ import("//arkcompiler/ets_runtime/test/test_helper.gni")
host_jit_test_action("ts_inline") {
deps = []
extra_option = " --log-info=trace --compiler-trace-inline=true"
extra_option =
" --log-info=trace --compiler-trace-inline=true --ark-properties=0x107c"
}