A fix for sanitizers' TLS support on FreeBSD

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204595 91177308-0d34-0410-b5e6-96231b3b80d8
Fix a VS compile-time warning

warning C4345: behavior change: an object of POD type constructed with an initializer of the form () will be default-initialized

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204597 91177308-0d34-0410-b5e6-96231b3b80d8
[CMake] Rename the variable

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204602 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: add benchmarks for synchronization handling



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204608 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: reduce default number of threads in benchmarks
buildbots seem to OOM with that many threads



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204610 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: use read lock instead of write in atomic operations when possible


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204654 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: reorder SyncVar members to reduce contention



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204655 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: optimize vector clock operations
Make vector clock operations O(1) for several important classes of use cases.
See comments for details.
Below are stats from a large server app, 77% of all clock operations are handled as O(1).

Clock acquire                     :         25983645
  empty clock                     :          6288080
  fast from release-store         :         14917504
  contains my tid                 :          4515743
  repeated (fast)                 :          2141428
  full (slow)                     :          2636633
  acquired something              :          1426863
Clock release                     :          2544216
  resize                          :             6241
  fast1                           :           197693
  fast2                           :          1016293
  fast3                           :             2007
  full (slow)                     :          1797488
  was acquired                    :           709227
  clear tail                      :                1
  last overflow                   :                0
Clock release store               :          3446946
  resize                          :           200516
  fast                            :           469265
  slow                            :          2977681
  clear tail                      :                0
Clock acquire-release             :           820028




git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204656 91177308-0d34-0410-b5e6-96231b3b80d8
InstrProf: Change the extension of the default profile

Change the name of the default profile dumped by compiler-rt to
default.profraw.  This distinguishes it more clearly from the
(incompatible) format output by llvm-profdata that is read by clang
-fprofile-instr-use.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204676 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] A disabled test for inexact "select" instrumentation.


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