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

Commit 03f31e5b authored by Martijn Coenen's avatar Martijn Coenen
Browse files

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
parent 12876ad8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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.