commit | 7dacc699a4692a3754a270a5e2d93138899242d2 | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Fri Apr 24 18:27:51 2020 -0700 |
committer | Steven Moreland <smoreland@google.com> | Wed May 20 22:15:58 2020 +0000 |
tree | 98c72219dd79085fb94a1dab0ac2e4d1efbb87d3 | |
parent | dd44f7465d53fe155c03c0b1129c467a1f1c5830 [diff] |
binder: Parcel avoid too small initial allocation When a transaction is being sent, frequently many allocations are in a row. In order to avoid all these allocations, creating a minimum allocation size here. A test is also added which ensures that a basic transaction takes exactly one allocation. Bug: 150149045 Test: atest binderAllocationLimits Change-Id: I88ab066328158a8b73dd81201b796f247c4dbbd0