[compiler-rt] r176264 - [asan] Lower memory usage in LargeMallocTest on Android.
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Thu Feb 28 07:54:58 PST 2013
Author: eugenis
Date: Thu Feb 28 09:54:58 2013
New Revision: 176264
URL: http://llvm.org/viewvc/llvm-project?rev=176264&view=rev
Log:
[asan] Lower memory usage in LargeMallocTest on Android.
Modified:
compiler-rt/trunk/lib/asan/tests/asan_test.cc
Modified: compiler-rt/trunk/lib/asan/tests/asan_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/tests/asan_test.cc?rev=176264&r1=176263&r2=176264&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/tests/asan_test.cc (original)
+++ compiler-rt/trunk/lib/asan/tests/asan_test.cc Thu Feb 28 09:54:58 2013
@@ -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);
}
}
More information about the llvm-commits
mailing list