From 03f31e5b222cfdac19e018040da1aba32476b59d Mon Sep 17 00:00:00 2001 From: Martijn Coenen Date: Thu, 23 Sep 2021 09:53:48 +0200 Subject: [PATCH] Increase global binder proxy limit to 25k. We know that the current per-uid proxy limit mechanism is not entirely accurate because of delayed GC; in the worst case, this means that an app can have twice the number of allowed proxies outstanding (~13k proxies). To account for this, slightly bump the limit at which we crash. Bug: 198340142 Test: N/A Change-Id: Ic6973a2dd60434b3f92041304522fcffb4fbbfd8 --- core/java/android/os/BinderProxy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/os/BinderProxy.java b/core/java/android/os/BinderProxy.java index 3d18125f18125..483b549c56373 100644 --- a/core/java/android/os/BinderProxy.java +++ b/core/java/android/os/BinderProxy.java @@ -83,7 +83,7 @@ public final class BinderProxy implements IBinder { * Debuggable builds will throw an BinderProxyMapSizeException if the number of * map entries exceeds: */ - private static final int CRASH_AT_SIZE = 20_000; + private static final int CRASH_AT_SIZE = 25_000; /** * We next warn when we exceed this bucket size.