[tsan] fix pthread_rwlock_tryrdlock interceptor, don't try to detect deadlocks when reporting bad unlock

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@212526 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: remove unnecessary line split



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@212527 91177308-0d34-0410-b5e6-96231b3b80d8
[tsan] fix deadlock detector's interoperation with java locks (https://code.google.com/p/thread-sanitizer/issues/detail?id=67)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@212529 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: fix a bug in metamap

The bug happens in the following case:
Mutex is located at heap block beginning,
when we call MutexDestroy, s->next is set to 0,
so free can't find the MBlock related to the block.



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

idx0 is not updated in the branch,
so if we take that branch idx0 will stay updated forever




git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@212532 91177308-0d34-0410-b5e6-96231b3b80d8
[tsan] Enable tsan's deadlock detector by default.

The tsan's deadlock detector has been used in Chromium for a while;
it found a few real bugs and reported no false positives.
So, it's time to give it a bit more exposure.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@212533 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Fix out of bounds access in origin copying.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@212534 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: allow memory overlap in __tsan_java_move
JVM actually moves memory between overlapping ranges.




git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@212560 91177308-0d34-0410-b5e6-96231b3b80d8
[TSan] Revert r212531 and r212532.

They cause "check-tsan" command to hang. Details in r212532 review thread.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@212562 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: reapply 212531 and 212532 with a fix
don't reset s->addr as well



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