projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e01bab5
)
[asan] enable asan_allocator2 by default on Linux. Will enable it on other platforms...
author
Kostya Serebryany
<kcc@google.com>
Tue, 15 Jan 2013 13:57:39 +0000
(13:57 +0000)
committer
Kostya Serebryany
<kcc@google.com>
Tue, 15 Jan 2013 13:57:39 +0000
(13:57 +0000)
llvm-svn: 172531
compiler-rt/lib/asan/asan_allocator.h
patch
|
blob
|
history
diff --git
a/compiler-rt/lib/asan/asan_allocator.h
b/compiler-rt/lib/asan/asan_allocator.h
index
488a0c6
..
cca24ed
100644
(file)
--- a/
compiler-rt/lib/asan/asan_allocator.h
+++ b/
compiler-rt/lib/asan/asan_allocator.h
@@
-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 {