[Sanitizer] Generalize compile/link flags for sanitizer_common tests on Android and on other platforms.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177146 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Add ForEachChunk() to sanitizer allocators. Patch by Sergey Matveev

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177147 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] fix gcc build warnings

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177149 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Don't link tests with -lpthread on Android.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177151 91177308-0d34-0410-b5e6-96231b3b80d8
[TSan] Switch TSan runtime to use ThreadRegistry class from sanitizer_common

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177154 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Don't intercept frexpf and frexpl on Windows. Add frexp declaration to asan_intercepted_functions.h

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177155 91177308-0d34-0410-b5e6-96231b3b80d8
[libsanitizer] StopTheWorld in sanitizer_common

StopTheWorld puts the process in a suspended state before running the
user-supplied callback. To be used in TSan and in leak checking code.

Linux implementation provided.

Patch by Sergey Matveev (earthdok@google.com)


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