Skip to content

Commit a2ad656

Browse files
author
Romain Guy
committed
Increase the Message pool size
Change-Id: If609c9ffbea800ff6409b0096a82f0b899f29343
1 parent 1f59e5c commit a2ad656

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/java/android/os/Message.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ public final class Message implements Parcelable {
9797
private static Message sPool;
9898
private static int sPoolSize = 0;
9999

100-
private static final int MAX_POOL_SIZE = 10;
101-
100+
private static final int MAX_POOL_SIZE = 50;
101+
102102
/**
103103
* Return a new Message instance from the global pool. Allows us to
104104
* avoid allocating new objects in many cases.

0 commit comments

Comments
 (0)