diff --git a/adapter/ohos/entrance/dynamic_component/eaworker_task_wrapper_impl.cpp b/adapter/ohos/entrance/dynamic_component/eaworker_task_wrapper_impl.cpp index e812c57057194351598bfb1dbd689f84626ea326..1690257822008aab59f69caeb1fe042561af8d63 100644 --- a/adapter/ohos/entrance/dynamic_component/eaworker_task_wrapper_impl.cpp +++ b/adapter/ohos/entrance/dynamic_component/eaworker_task_wrapper_impl.cpp @@ -185,7 +185,8 @@ void EaWorkerTaskWrapperImpl::DumpWorker() } auto worker_id = arkts::concurrency_helpers::GetWorkerId(envCurr); - TAG_LOGI(AceLogTag::ACE_DYNAMIC_COMPONENT, "DumpWorker end, worker_id: %{public}d", worker_id); + TAG_LOGI(AceLogTag::ACE_DYNAMIC_COMPONENT, "DumpWorker end, worker_id: %{public}d, vmInThread: %{public}p", + worker_id, vmInThread); } void EaWorkerTaskWrapperImpl::Call(const TaskExecutor::Task& task, uint32_t delayTime) diff --git a/frameworks/bridge/arkts_frontend/entry/arkts_entry_loader.cpp b/frameworks/bridge/arkts_frontend/entry/arkts_entry_loader.cpp index dff47b13d1c50c67411354134aa4946294e6c826..0c6f08259947fd1fc7241f929ec28d22e2f94f5c 100644 --- a/frameworks/bridge/arkts_frontend/entry/arkts_entry_loader.cpp +++ b/frameworks/bridge/arkts_frontend/entry/arkts_entry_loader.cpp @@ -96,7 +96,7 @@ EntryLoader::EntryLoader(ani_env* env, const std::string& abcModulePath): env_(e ANI_CALL(env, GetUndefined(&undefined), return); ani_string abcModulePathStr; - ANI_CALL(env, String_NewUTF8(abcModulePath.c_str(), abcModulePath.length(), &abcModulePathStr), return); + env->String_NewUTF8(abcModulePath.c_str(), abcModulePath.length(), &abcModulePathStr); ani_type stringCls; ANI_CALL(env, Object_GetType(abcModulePathStr, &stringCls), return); diff --git a/interfaces/ets/ani/pluginComponent/src/ani_plugin_component.cpp b/interfaces/ets/ani/pluginComponent/src/ani_plugin_component.cpp index 65fe06595e708475028cc27d3c7fe8b99dae8210..48b6d872e56af8fc51ca5920b474ee4f396c47bb 100644 --- a/interfaces/ets/ani/pluginComponent/src/ani_plugin_component.cpp +++ b/interfaces/ets/ani/pluginComponent/src/ani_plugin_component.cpp @@ -152,13 +152,11 @@ static void Request([[maybe_unused]] ani_env* env, [[maybe_unused]] ani_object r bool ret = ParsePushAndRequestParameters(env, asyncCallbackInfo, requestParameters); if (!ret) { LOGE("plugin-ani parse request params fail"); - AceFreeAsyncJSCallbackInfo(&asyncCallbackInfo); return; } ani_ref fnObjGlobalRef = nullptr; if (ANI_OK != env->GlobalReference_Create(reinterpret_cast(fnObj), &fnObjGlobalRef)) { LOGE("plugin-ani get request call back failed"); - AceFreeAsyncJSCallbackInfo(&asyncCallbackInfo); return; } asyncCallbackInfo->cbInfo.callback = fnObjGlobalRef; @@ -178,7 +176,6 @@ static void On([[maybe_unused]] ani_env* env, [[maybe_unused]] ani_string eventT ani_ref fnObjGlobalRef = nullptr; if (ANI_OK != env->GlobalReference_Create(reinterpret_cast(fnObj), &fnObjGlobalRef)) { LOGE("plugin-ani get %{public}s call back failed", eventType.c_str()); - AceFreeAsyncJSCallbackInfo(&asyncCallbackInfo); return; } asyncCallbackInfo->cbInfo.callback = fnObjGlobalRef;