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
This commit is contained in:
Martijn Coenen
2021-09-23 09:53:48 +02:00
parent 12876ad8c0
commit 03f31e5b22

View File

@@ -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.