[ASan] Implement asan_mz_size(), asan_mz_force_lock() and asan_mz_force_unlock() for allocator2.
Switch to allocator2 on Darwin.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174603 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Fix a compilation warning.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174604 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer_common] Fix lint warnings.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174616 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] always allocate 16-byte aligned chunks of memory

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174617 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: fix Go build


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174622 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: intercept libc __res_iclose
this is required to catch close of file descriptors created in getaddrinfo()


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174624 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Enable the new and delete wrappers on Darwin.
Also fix large_func_test.cc, which got broken when we switched to allocator2: the OOB access was too far from the original allocation, so ASan decided to describe the next one.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174626 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Enable alloc_dealloc_mismatch by default on Darwin.
Enable AddressSanitizer.AllocDeallocMismatch tests.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174628 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Remove the replace_cfallocator flag, which is used no more.
See https://code.google.com/p/address-sanitizer/issues/detail?id=10 for the context.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174629 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: fix suppress_java logic


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174635 91177308-0d34-0410-b5e6-96231b3b80d8
[CMake] set -mmacosx-version-min to 10.7 if compiler-rt is built with -stdlib=libc++

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174699 91177308-0d34-0410-b5e6-96231b3b80d8