From d5436ed22d62e0332fad95a0f9fb535d97e1319a Mon Sep 17 00:00:00 2001 From: qiudengcheng Date: Thu, 24 Feb 2022 14:43:03 +0800 Subject: [PATCH 1/2] IssueNo:#I4UK8A Description:create appTask in specific space Sig:aafwk Feature or Bugfix:Bugfix Binary Source:No Signed-off-by: qiudengcheng --- services/abilitymgr_lite/src/ability_service.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/abilitymgr_lite/src/ability_service.cpp b/services/abilitymgr_lite/src/ability_service.cpp index ee6b794..494496b 100755 --- a/services/abilitymgr_lite/src/ability_service.cpp +++ b/services/abilitymgr_lite/src/ability_service.cpp @@ -347,7 +347,8 @@ int32_t AbilityService::CreateAppTask(AbilityRecord *record) TSK_INIT_PARAM_S stTskInitParam = {0}; stTskInitParam.pfnTaskEntry = (TSK_ENTRY_FUNC)(JsAppHost::JsAppTaskHandler); stTskInitParam.uwStackSize = TASK_STACK_SIZE; -#ifdef AAFWK_STATIC_STACK_SPACE +#ifdef APP_PLATFORM_WATCHGT + HILOG_INFO(HILOG_MODULE_AAFWK, "CreateAppTask in specific space"); stTskInitParam.pStackAddr = ptrStackSpace; #endif stTskInitParam.usTaskPrio = OS_TASK_PRIORITY_LOWEST - APP_TASK_PRI; -- Gitee From 8d3f49413d2311566daa391062f3e4a73099fa77 Mon Sep 17 00:00:00 2001 From: qiudengcheng Date: Thu, 24 Feb 2022 14:45:45 +0800 Subject: [PATCH 2/2] IssueNo:#I4UK8A Description:create appTask in specific space Sig:aafwk Feature or Bugfix:Bugfix Binary Source:No Signed-off-by: qiudengcheng --- services/abilitymgr_lite/src/ability_service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/abilitymgr_lite/src/ability_service.cpp b/services/abilitymgr_lite/src/ability_service.cpp index 494496b..53e8dc7 100755 --- a/services/abilitymgr_lite/src/ability_service.cpp +++ b/services/abilitymgr_lite/src/ability_service.cpp @@ -45,7 +45,7 @@ constexpr int32_t TASK_STACK_SIZE = 0x400 * SIZE_COEFFICIENT; constexpr int32_t APP_TASK_PRI = 25; SliteAbility *g_NativeAbility = nullptr; -#ifdef AAFWK_STATIC_STACK_SPACE +#ifdef APP_PLATFORM_WATCHGT static uint8_t ptrStackSpace[TASK_STACK_SIZE]; #endif -- Gitee