[asan] Lower memory usage in LargeMallocTest on Android.

llvm-svn: 176264
This commit is contained in:
Evgeniy Stepanov 2013-02-28 15:54:58 +00:00
parent a400cab43a
commit 3305b177e6
1 changed files with 2 additions and 1 deletions

View File

@ -319,7 +319,8 @@ static void TestLargeMalloc(size_t size) {
}
TEST(AddressSanitizer, LargeMallocTest) {
for (int i = 113; i < (1 << 28); i = i * 2 + 13) {
const int max_size = (ASAN_LOW_MEMORY) ? 1 << 26 : 1 << 28;
for (int i = 113; i < max_size; i = i * 2 + 13) {
TestLargeMalloc(i);
}
}