[asan] add a flag poison_heap to allow better allocator benchmarking, implemenet malloc_stats() on Linux

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170685 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] add memalign tests

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

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170689 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Make the FileCheck pattern more c++filt-resistant.

This test didn't pass for me locally because of "T0's stack" being converted to "T0'short stack" by c++filt.
Strange enough this doesn't show up on our bots.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170690 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Modify CMake build rules for sanitizer_common unit tests: build them with fresh Clang for both 32- and 64-bits (if possible)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170691 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: add cmake build and tests into presubmit script


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170695 91177308-0d34-0410-b5e6-96231b3b80d8
[*san] Create unittests output directory, if it does not exist.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170696 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] asan_allocator2: implement memalign

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170697 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Fix CMake build rules for sanitizer_common tests to respect universal static libraries on Mac

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170698 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] remove duplicate entry in shadow byte legend

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170701 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: java interface implementation skeleton


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170707 91177308-0d34-0410-b5e6-96231b3b80d8
Clean up some warnings that become errors. Seen in Xcode.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170843 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: use clang in cmake build + add -Werror


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170844 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: add lit test with statically linker libstdc++


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170866 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] add a flag alloc_dealloc_mismatch (off by default for now) which finds malloc/delete, new/free, new/delete[], etc mismatches

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170869 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Don't implicitly add object files to the list of dependencies when building compiler_rt unittests. Fix sanitizer_common and asan build rules accordingly. This also fixes check-sanitizer command on Ninja.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170870 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: disable checks for limited address space and unlimited stack for Go


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


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170877 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Fix another FileCheck pattern to be c++filt-proof.


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