[asan] Make ReplaceSystemMalloc optional on Android.

Don't fail if __libc_malloc_dispatch is missing; continue running
with normal linux interceptors instead.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210322 91177308-0d34-0410-b5e6-96231b3b80d8
sanitizer: document missing macro



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210329 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Better diagnostic for invalid origin id.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210331 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Partial revert of r210331.

Bots did not like it.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210332 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Fix wrong endianness when printing shadow.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210335 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: allow to build Go runtime with clang + enable SSE3



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210344 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: fix Go build with TSAN_COLLECT_STATS
Go does not have cur_thread function.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210345 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: fix clang warning:
comparison of unsigned expression >= 0 is always true



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210346 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: flush metamap per-thread cache when thread finishes



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210347 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: fix mapping of meta shadow for Go
Go maps heap and data+bss, these regions are not adjacent.
data+bss is mapped first.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210348 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: fix out-of-bounds access in Go runtime
FuncEntry can resize the shadow stack, while "thr->shadow_stack_pos[0] = pc" writes out-of-bounds.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210349 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: minor optimizations for Go runtime


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210351 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: disable reporting of mutex misuses in Go



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210353 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: fix mutex in Go mode
In Go it's legal to unlock from a different goroutine.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210358 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: fix CurrentStackId
FuncEnter adds FuncEnter entry to trace that nobody removes later



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210359 91177308-0d34-0410-b5e6-96231b3b80d8
Un-xfail passing ARM Android tests

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210360 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: fix argument passing in Go interface
Go calling convention does not support bools (it probably works, but uptrs are safer)




git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210365 91177308-0d34-0410-b5e6-96231b3b80d8
[TSan] Make lit-tests more self-contained

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