[asan] Revert r176255, r176264.

New allocator has 1.5x memory overhead of the old one.

llvm-svn: 176340
This commit is contained in:
Evgeniy Stepanov 2013-03-01 09:33:05 +00:00
parent 80c93a0793
commit f5d8c90f57
2 changed files with 2 additions and 3 deletions

View File

@ -24,7 +24,7 @@
// 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

View File

@ -319,8 +319,7 @@ static void TestLargeMalloc(size_t size) {
}
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);
}
}