tsan: fix memory leak



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177387 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: symbolizer "flush caches" functinality



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177388 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: symbolizer "flush caches" support


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177389 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: instruct malloc() to consume less memory



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177393 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: flush dead thread info earlier (when another thread is finished rather than new thread is created)



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



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177395 91177308-0d34-0410-b5e6-96231b3b80d8
Don't use --sysroot to linux SDK when building libprofile - SDK on Linux seems to be incomplete.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177396 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Move ASan platform macros to sanitizer_common and rename them appropriately.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177397 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Replace more platform checks with SANITIZER_ constants.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177400 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] More renamed macros.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177401 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] s/ASAN_POSIX/SANITIZER_POSIX/


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177407 91177308-0d34-0410-b5e6-96231b3b80d8
Add a way to register and execute "writeout" functions.

It may be prohibitively expensive to write out >1000 files at the same time. So
we would rather emit them serially. These functions allow the GCOV
implementation to register the functions that writeout the GCOV information per
compile unit. At exit, they are written.
<rdar://problem/12439551>


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177436 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Enable prctl interceptor on Android.


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


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


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177500 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Move GetCurrentThread/SetCurrentThread from AsanThreadRegistry class into plain functions: they don't actually use registry

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177501 91177308-0d34-0410-b5e6-96231b3b80d8
asan/tsan: reduce per-thread memory allocator caches
256 blocks (which is 512 in reallity) seems to be too big cache,
reducing the size reduces memory consumption but does not degrade performance.



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