From 3b31cee81a412922088443ab0a95815f2f27a68c Mon Sep 17 00:00:00 2001 From: liuyaning Date: Tue, 19 Aug 2025 10:02:59 +0800 Subject: [PATCH] cherry-pick Taskpool options cherry-pick Taskpool options Issue:https://gitee.com/openharmony/ability_ability_runtime/issues/ICTKSA Signed-off-by: liuyaning --- .../frameworks/ets_environment/src/ets_environment.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ets_environment/frameworks/ets_environment/src/ets_environment.cpp b/ets_environment/frameworks/ets_environment/src/ets_environment.cpp index 5b75b2f7de7..84c3fe7034d 100644 --- a/ets_environment/frameworks/ets_environment/src/ets_environment.cpp +++ b/ets_environment/frameworks/ets_environment/src/ets_environment.cpp @@ -234,6 +234,7 @@ bool ETSEnvironment::Initialize() options.push_back(ani_option { bootString.data(), nullptr }); options.push_back(ani_option { "--ext:--compiler-enable-jit=false", nullptr }); options.push_back(ani_option { "--ext:--log-level=info", nullptr }); + options.push_back(ani_option { "--ext:taskpool-support-interop=true", nullptr }); ani_options optionsPtr = { options.size(), options.data() }; ani_status status = ANI_ERROR; if ((status = lazyApis_.ANI_CreateVM(&optionsPtr, ANI_VERSION_1, &vmEntry_.aniVm_)) != ANI_OK) { @@ -582,4 +583,4 @@ ETSEnvFuncs *ETSEnvironment::RegisterFuncs() ETS_EXPORT extern "C" ETSEnvFuncs *OHOS_ETS_ENV_RegisterFuncs() { return OHOS::EtsEnv::ETSEnvironment::RegisterFuncs(); -} \ No newline at end of file +} -- Gitee