diff --git a/services/abilitymgr_lite/src/ability_service.cpp b/services/abilitymgr_lite/src/ability_service.cpp index ee6b79467cbbf28f5c95c7253289c1b6d6e44331..53e8dc703301db3aad81fd33166b700695dbe858 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 @@ -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;