Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment