Enable gwp-asan in system_server. am: eeff2cf753 am: 2fd89b5b49 am: 562b570a52

Change-Id: I1071946bf8d42d961412b2d37c2e05fe5b66f312
This commit is contained in:
Automerger Merge Worker
2020-03-14 00:36:31 +00:00

View File

@@ -761,6 +761,10 @@ public class ZygoteInit {
* this is present in all ARMv8 CPUs; this flag has no effect on other platforms. */
parsedArgs.mRuntimeFlags |= Zygote.MEMORY_TAG_LEVEL_TBI;
/* Enable gwp-asan on the system server with a small probability. This is the same
* policy as applied to native processes and system apps. */
parsedArgs.mRuntimeFlags |= Zygote.GWP_ASAN_LEVEL_LOTTERY;
if (shouldProfileSystemServer()) {
parsedArgs.mRuntimeFlags |= Zygote.PROFILE_SYSTEM_SERVER;
}