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

Commit b7d20184 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Clear calling identity when dumping binder proxy map" into main

parents 5ddd5b56 360dcaba
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -237,7 +237,14 @@ public final class BinderProxy implements IBinder {
                    // about to crash.
                    final int totalUnclearedSize = unclearedSize();
                    if (totalUnclearedSize >= CRASH_AT_SIZE) {
                        // Clear identity since the binder proxy could be getting created from
                        // an external call
                        final long identity = Binder.clearCallingIdentity();
                        try {
                            dumpProxyInterfaceCounts();
                        } finally {
                            Binder.restoreCallingIdentity(identity);
                        }
                        dumpPerUidProxyCounts();
                        Runtime.getRuntime().gc();
                        throw new BinderProxyMapSizeException(