New allocator has 1.5x memory overhead of the old one.
llvm-svn: 176340
// will co-exist in the source base for a while. The actual allocator is chosen
// at build time by redefining this macro.
#ifndef ASAN_ALLOCATOR_VERSION
-# if ASAN_LINUX || ASAN_MAC || ASAN_WINDOWS
+# if (ASAN_LINUX && !ASAN_ANDROID) || ASAN_MAC || ASAN_WINDOWS
# define ASAN_ALLOCATOR_VERSION 2
# else
# define ASAN_ALLOCATOR_VERSION 1
}
TEST(AddressSanitizer, LargeMallocTest) {
- const int max_size = (ASAN_LOW_MEMORY) ? 1 << 26 : 1 << 28;
- for (int i = 113; i < max_size; i = i * 2 + 13) {
+ for (int i = 113; i < (1 << 28); i = i * 2 + 13) {
TestLargeMalloc(i);
}
}