Merge pull request !1717 from 杨浩/1120gwp-5.0.1
This commit is contained in:
openharmony_ci 2024-11-22 03:21:18 +00:00 committed by Gitee
commit 9affd0bd00
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