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

Commit 3307afcc authored by Jing Ji's avatar Jing Ji Committed by Android (Google) Code Review
Browse files

Merge "Spawn new thread on dumping BinderProxy leaks" into main

parents 4eeb48c6 ef914b16
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -9189,6 +9189,11 @@ public class ActivityManagerService extends IActivityManager.Stub
    private class MyBinderProxyCountEventListener implements BinderProxyCountEventListener {
        @Override
        public void onLimitReached(int uid) {
            // Spawn a new thread for the dump as it'll take long time.
            new Thread(() -> handleLimitReached(uid), "BinderProxy Dump: " + uid).start();
        }
        private void handleLimitReached(int uid) {
            Slog.wtf(TAG, "Uid " + uid + " sent too many Binders to uid "
                    + Process.myUid());
            BinderProxy.dumpProxyDebugInfo();