[asan] enable asan_allocator2 by default on Linux. Will enable it on other platforms and remove the old one later, after additional testing. The new allocator is much faster and uses less memory

llvm-svn: 172531
This commit is contained in:
Kostya Serebryany 2013-01-15 13:57:39 +00:00
parent e01bab587c
commit d8b1f78296
1 changed files with 7 additions and 1 deletions

View File

@ -23,7 +23,13 @@
// to a new one (version 2). The change is quite intrusive so both allocators
// will co-exist in the source base for a while. The actual allocator is chosen
// at build time by redefining this macro.
#define ASAN_ALLOCATOR_VERSION 1
#ifndef ASAN_ALLOCATOR_VERSION
# if ASAN_LINUX && !ASAN_ANDROID
# define ASAN_ALLOCATOR_VERSION 2
# else
# define ASAN_ALLOCATOR_VERSION 1
# endif
#endif // ASAN_ALLOCATOR_VERSION
namespace __asan {