[asan] use the slow CFI-based unwinder when reporting an error. Still use the fast unwinder for malloc/free. Linux-x86-only for now.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172397 91177308-0d34-0410-b5e6-96231b3b80d8
ASan: Disable alloc/dealloc mismatch test on Android. It's not supposed to work there

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172398 91177308-0d34-0410-b5e6-96231b3b80d8
Remove thread-locals from sanitizer_common tests.

Not supported on Android.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172408 91177308-0d34-0410-b5e6-96231b3b80d8
Build rules for sanitizer_common tests on Android.


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


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172415 91177308-0d34-0410-b5e6-96231b3b80d8
Fix-up copypasto from r172410

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172419 91177308-0d34-0410-b5e6-96231b3b80d8
Move large part of asan_test_utils.h to sanitizer_common.
Move my_rand() to the common header.

This lets us avoid the use of rand_r in sanitizer_common tests.
There is no rand_r on Android.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172421 91177308-0d34-0410-b5e6-96231b3b80d8
[ubsan] Use __sanitizer::atomic_exchange(), prefer shared impl.

Specify weaker memory order in case we optimize for it in the future,
presently still doing same __sync_lock_test_and_set() as before.

Change suggested by Alexey Samsonov, thanks!

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172429 91177308-0d34-0410-b5e6-96231b3b80d8
asan: rename the file (it's not 64-bit specific anymore)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172518 91177308-0d34-0410-b5e6-96231b3b80d8
asan: fix bugs in the testlib


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


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172520 91177308-0d34-0410-b5e6-96231b3b80d8
asan: faster thead-local cache for memory allocator


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172521 91177308-0d34-0410-b5e6-96231b3b80d8
asan: correct non-temporal prefetch for memory allocator


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172522 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] hide PR_SET_NAME under an ifdef (for older kernels)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172523 91177308-0d34-0410-b5e6-96231b3b80d8
asan: fix the constant for new allocator cache


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