tsan: handle larger number of goroutines + fix a memory leak of goroutine descriptors


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161770 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] move OS-dependent pieces of symbolizer to separate source files

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161862 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] support for running OS-specific tests using lit, port clone_test as an example

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161864 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] make sure __asan_default_options gets default visibility, port corresponding test to lit

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161869 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] make sure __asan_default_options symbol is exported

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161873 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] better diagnostics for mmap failure

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161874 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] move declaration of __asan_default_options to interface header

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161932 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] port interception and shared library tests to lit

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161933 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] port remaining output and feature tests to lit. TODO: we should in fact run most of the tests for 32/64 bits and for all optimization levels

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161935 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] use clangxx_asan instead of clang_asan for C++ lit tests

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161936 91177308-0d34-0410-b5e6-96231b3b80d8
Use the common interception machinery for mlock/munlock/mlockall/munlockall.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161938 91177308-0d34-0410-b5e6-96231b3b80d8
Do not attempt to intercept mlock and friends on Windows.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161939 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Port (the last one) tricky interface_test to lit, and a *huge* chunks of boilerplate to run tests for 32/64 bits and all optimization levels. Alas, lit doesn't support for loops in RUN-lines...

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161941 91177308-0d34-0410-b5e6-96231b3b80d8
Make __asan::asan_{malloc,free,memalign} globally visible, so that the dynamic version of the runtime will export them.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161942 91177308-0d34-0410-b5e6-96231b3b80d8
Use SANITIZER_INTERFACE_ATTRIBUTE instead of __attribute__((visibility("default")))
Export CheckFailed, asan_malloc, asan_free, asan_memalign, AsanStackTrace::CompressStack, AsanStackTrace::UncompressStack from the dynamic runtime library.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161943 91177308-0d34-0410-b5e6-96231b3b80d8
Move the prototype of __CFInitialize to asan_mac.h so that asan_malloc_mac.cc may use it in the dynamic library mode.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161945 91177308-0d34-0410-b5e6-96231b3b80d8
Patch the frame address regardless of the frame number.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161946 91177308-0d34-0410-b5e6-96231b3b80d8
Pass offset of the frame address within the binary to addr2line instead of the absolute address.
Fixes the problem with -PIE binaries.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161947 91177308-0d34-0410-b5e6-96231b3b80d8
Check for filenames and numbers to detect possible problems with asan_symbolize.py on -fPIE binaries.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161948 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: fix several integer overflows


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