Enable gwp-asan in system_server. am: eeff2cf753
Change-Id: I25e5c4b1aa35f1082d8e7f15d004a02f5d0a986d
This commit is contained in:
@@ -761,6 +761,10 @@ public class ZygoteInit {
|
|||||||
* this is present in all ARMv8 CPUs; this flag has no effect on other platforms. */
|
* this is present in all ARMv8 CPUs; this flag has no effect on other platforms. */
|
||||||
parsedArgs.mRuntimeFlags |= Zygote.MEMORY_TAG_LEVEL_TBI;
|
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()) {
|
if (shouldProfileSystemServer()) {
|
||||||
parsedArgs.mRuntimeFlags |= Zygote.PROFILE_SYSTEM_SERVER;
|
parsedArgs.mRuntimeFlags |= Zygote.PROFILE_SYSTEM_SERVER;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user