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

Commit e69b900f authored by Eric Miao's avatar Eric Miao
Browse files

Use readonly version of native_metrics in dumpMemInfo

Bug: 375072865
Flag: EXEMPT bugfix

Reading of an exposed aconfig flag `native_metrics` caused crash in
isolated processes.  This CL fixes the crash by using the readonly
version of the flag.

Change-Id: I1902e81b768618c9682b97f952feb3167799d081
parent ef637017
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1747,7 +1747,7 @@ public final class ActivityThread extends ClientTransactionHandler
            printRow(pw, TWO_COUNT_COLUMNS, "Death Recipients:", binderDeathObjectCount,
                    "WebViews:", webviewInstanceCount);

            if (com.android.libcore.Flags.nativeMetrics()) {
            if (com.android.libcore.readonly.Flags.nativeMetrics()) {
                dumpMemInfoNativeAllocations(pw);
            }