tsan: add missing interceptor for embed symbolizer



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204124 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: better addr->object hashmap
still experimental



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204126 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: support up to 1<<20 mutexes in standalone deadlock detector



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204127 91177308-0d34-0410-b5e6-96231b3b80d8
Move Android ucontext.h out of third_party.

Google is re-licensing this code under the standard dual license of
compiler-rt.


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

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204139 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: lazily initialize deadlock detector runtime
this is necessaary because dlsym can call malloc, which can lock mutexes that we intercept



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204141 91177308-0d34-0410-b5e6-96231b3b80d8
[CMake] Build compiler-rt libraries with -std=c++11

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204145 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: deadlock detector: add ability to ignore destruction of global mutexes


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204146 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: addrhashmap: fix bug with initialization of addresses in add array



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204148 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: deadlock detector: print 2 stacks per deadlock edge



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204149 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: deadlock detector: add deadlock detector flags
the first flags is to enable printing of the second stack per edge



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204150 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Origin tracking with history, compiler-rt part.

Compiler-rt part of MSan implementation of advanced origin tracking,
when we record not only creation point, but all locations where
an uninitialized value was stored to memory, too.


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



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204154 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Fix a bug in AdjustStackSize().

If the user requests OS default stack size, do not adjust it to our minimum
stack size (which is usually much less than the OS default).

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


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


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204182 91177308-0d34-0410-b5e6-96231b3b80d8
profile: Include the function hash in PGO profiles

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204185 91177308-0d34-0410-b5e6-96231b3b80d8
Don't take short cuts trying to avoid conditionals. This leads to
negative shift amounts and/or shifts wider than the type. VAX traps on
the former, X86 and other platforms produce incorrect results on the
latter.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204193 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Print mmap errno/GetLastError in a readable and consistent way

Reviewed at http://llvm-reviews.chandlerc.com/D3107

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204218 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] deadlock detector: a) initial support for suppressions, b) be more robust in case we failed to extract a stack trace for one of the locks

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