Merge pull request !1689 from 杨浩/1111gwp
This commit is contained in:
openharmony_ci 2024-11-11 10:32:44 +00:00 committed by Gitee
commit eef44b5e82
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -86,15 +86,12 @@ static int SetAsanEnabledEnv(const AppSpawnMgr *content, const AppSpawningCtx *p
static void SetGwpAsanEnabled(const AppSpawnMgr *content, const AppSpawningCtx *property)
{
if (!(CheckAppMsgFlagsSet(property, APP_FLAGS_GWP_ENABLED_FORCE) ||
CheckAppMsgFlagsSet(property, APP_FLAGS_GWP_ENABLED_NORMAL))) {
int enforce = CheckAppMsgFlagsSet(property, APP_FLAGS_GWP_ENABLED_FORCE);
if (!enforce && !CheckAppMsgFlagsSet(property, APP_FLAGS_GWP_ENABLED_NORMAL)) {
return;
}
if (IsDeveloperModeOn(property)) {
APPSPAWN_LOGV("SetGwpAsanEnabled with flags: %{public}d",
CheckAppMsgFlagsSet(property, APP_FLAGS_GWP_ENABLED_FORCE));
may_init_gwp_asan(CheckAppMsgFlagsSet(property, APP_FLAGS_GWP_ENABLED_FORCE));
}
APPSPAWN_LOGV("SetGwpAsanEnabled with flags: %{public}d", enforce);
may_init_gwp_asan(enforce);
}
#ifdef ASAN_DETECTOR