Lines Matching defs:property

49 static int SetAsanEnabledEnv(const AppSpawnMgr *content, const AppSpawningCtx *property)
53 if (CheckAppMsgFlagsSet(property, g_configTable[i].flag)) {
87 static void SetGwpAsanEnabled(const AppSpawnMgr *content, const AppSpawningCtx *property)
89 if (!(CheckAppMsgFlagsSet(property, APP_FLAGS_GWP_ENABLED_FORCE) ||
90 CheckAppMsgFlagsSet(property, APP_FLAGS_GWP_ENABLED_NORMAL))) {
93 if (IsDeveloperModeOn(property)) {
95 CheckAppMsgFlagsSet(property, APP_FLAGS_GWP_ENABLED_FORCE));
96 may_init_gwp_asan(CheckAppMsgFlagsSet(property, APP_FLAGS_GWP_ENABLED_FORCE));
118 static int AsanSpawnGetSpawningFlag(AppSpawnMgr *content, AppSpawningCtx *property)
120 APPSPAWN_LOGV("Prepare spawn app %{public}s", GetProcessName(property));
122 if (CheckSupportColdStart(GetBundleName(property)) == 0) {
123 property->client.flags |= APP_COLD_START;
124 property->client.flags |= APP_ASAN_DETECTOR;
125 if (property->forkCtx.coldRunPath) {
126 free(property->forkCtx.coldRunPath);
129 property->forkCtx.coldRunPath = strdup("/system/asan/bin/appspawn");
131 property->forkCtx.coldRunPath = strdup("/system/asan/bin/nativespawn");
133 property->forkCtx.coldRunPath = strdup("/system/asan/bin/cjappspawn");
135 if (property->forkCtx.coldRunPath == NULL) {
136 APPSPAWN_LOGE("Failed to set asan exec path %{public}s", GetProcessName(property));
143 static int AsanSpawnInitSpawningEnv(AppSpawnMgr *content, AppSpawningCtx *property)
145 if (GetAppSpawnMsgType(property) == MSG_SPAWN_NATIVE_PROCESS) {
149 int ret = SetAsanEnabledEnv(content, property);
151 APPSPAWN_LOGI("SetAsanEnabledEnv cold start app %{public}s", GetProcessName(property));
152 property->client.flags |= APP_COLD_START;
155 (void)SetGwpAsanEnabled(content, property);