Signed-off-by: yanghao <yanghao236@huawei.com>
Change-Id: I865456664fbcf6e592aafafb9874b464c3529ac9
This commit is contained in:
yanghao 2024-09-19 11:59:01 +08:00
parent 148a7778e3
commit 7e234aa444

View File

@ -761,8 +761,12 @@ static bool IsSupportPrefork(AppSpawnContent *content, AppSpawnClient *client)
}
}
AppSpawningCtx *property = (AppSpawningCtx *)client;
bool isAsan = CheckAppMsgFlagsSet(property, APP_FLAGS_UBSAN_ENABLED)
|| CheckAppMsgFlagsSet(property, APP_FLAGS_ASANENABLED)
|| CheckAppMsgFlagsSet(property, APP_FLAGS_TSAN_ENABLED)
|| CheckAppMsgFlagsSet(property, APP_FLAGS_HWASAN_ENABLED);
if (content->mode == MODE_FOR_APP_SPAWN && !(client->flags & APP_COLD_START) && content->isPrefork
&& !CheckAppMsgFlagsSet(property, APP_FLAGS_CHILDPROCESS)) {
&& !CheckAppMsgFlagsSet(property, APP_FLAGS_CHILDPROCESS) && !isAsan) {
return true;
}
return false;