mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2024-11-27 04:00:37 +00:00
!7573 [JIT] set priority for JIT thread
Merge pull request !7573 from wzlgit/jit_priority
This commit is contained in:
commit
57938acb7e
@ -67,6 +67,8 @@ public:
|
||||
{
|
||||
Taskpool::Initialize(0, [](os::thread::native_handle_type thread) {
|
||||
os::thread::SetThreadName(thread, "OS_JIT_Thread");
|
||||
constexpr int32_t priorityVal = 5; // 5: The priority can be set within range [-20, 19]
|
||||
os::thread::SetPriority(os::thread::GetCurrentThreadId(), priorityVal);
|
||||
auto jitVm = JitVM::Create();
|
||||
JitTaskpool::GetCurrentTaskpool()->SetCompilerVm(jitVm);
|
||||
}, []([[maybe_unused]] os::thread::native_handle_type thread) {
|
||||
|
Loading…
Reference in New Issue
Block a user