commit | 627b9fa96b52aca1dde43686ad7eb279768f882a | [log] [tgz] |
---|---|---|
author | Narayan Kamath <narayan@google.com> | Fri Aug 15 15:57:30 2014 +0100 |
committer | Narayan Kamath <narayan@google.com> | Fri Aug 22 10:22:02 2014 +0100 |
tree | d275c05e05160ad9b4f7251f62bb626f5383e3fb | |
parent | 58c130c1eb99cc72998150d813b3e31896e3bfaf [diff] |
Fix abuse of Runtime.freeMemory. Runtime.freeMemory is the largest allocation that's possible *without a heap expansion*. That's a poor proxy for "can i allocate this byte array" and leads to flaky CTS tests. bug: 17021619 (cherry picked from commit df7e1dbcd0ff712f39b8e80023228ea4eb8531c2) Change-Id: I58dd8c006316e6f1195172cff8a262a96269c2b8