[ASan] Switch ASan to generic ThreadRegistry from sanitizer_common. Delete ASan-specific AsanThreadRegistry.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177634 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: remove bogus CHECK
Asynchronous signal (e.g. SIGABRT) can be received with any value of in_rtl.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177636 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: intercept abort() to fflush() libc streams



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177637 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: add flag to control symbolizer flush frequency



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177638 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: better reporting for races on vptr
explicitly say "ctor/dtor vs virtual call"



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177640 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: better reporting of thread leaks
1. do not report running threads as leaks
2. aggregate leaked threads by creation stack



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177647 91177308-0d34-0410-b5e6-96231b3b80d8
Don't forget to link in the C++-specific parts of the ubsan runtime when using the Makefile build system on Darwin.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177684 91177308-0d34-0410-b5e6-96231b3b80d8
ubsan: Pass floating-point arguments to the runtime by value if they fit the
value argument.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177689 91177308-0d34-0410-b5e6-96231b3b80d8
asan: fix lint warning about line length


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177709 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Fix an error on invalid deallocation in ASan allocator. When ASan checks if memory freed by user was indeed previously allocated, it first does an atomic write to presumed location of chunk header. This is wrong, as if the free is invalid, we may overwrite some valuable data (like other fields of the chunk header). Fix this by using atomic_compare_exchange instead.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177710 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] fix-up for r177634 on Windows.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177711 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Get rid of "using std::string" in msandr.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177714 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: work around FileCheck bug with empty outputs



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177715 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Place dlopen in an anon namespace.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177716 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Move test main and gtest include to separate files.


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