Commit 627b9fa9 authored by Narayan Kamath's avatar Narayan Kamath
Browse files

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 df7e1dbc)

Change-Id: I58dd8c006316e6f1195172cff8a262a96269c2b8
parent 58c130c1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment