forked from OSchip/llvm-project
[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:
parent
e01bab587c
commit
d8b1f78296
|
@ -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 {
|
||||
|
||||
|
|
Loading…
Reference in New Issue