Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ae5332f5 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Enable gwp-asan in system_server. am: eeff2cf7 am: 2fd89b5b

Change-Id: Ie716f8612a5d627994cf23e85595a1428f06aac0
parents 8cb942f4 2fd89b5b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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;
            }