forked from OSchip/llvm-project
[asan] Lower memory usage in LargeMallocTest on Android.
llvm-svn: 176264
This commit is contained in:
parent
a400cab43a
commit
3305b177e6
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue