diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2017-06-13 09:37:51 +0000 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2017-06-13 09:37:51 +0000 |
commit | 81825ab6eab9b060f549a94c281c7cc3cc4f1b4f (patch) | |
tree | f11f0295dbb96e3fed597a56c319a6a93af1bbd3 /test/tsan/custom_mutex0.cc | |
parent | 247f914543e89003c932df550a91de37ec19ca8a (diff) |
tsan: fix reading of mutex flags
SyncVar::IsFlagSet returns true if any flag is set.
This is wrong. Check the actual requested flag.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@305281 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/tsan/custom_mutex0.cc')
-rw-r--r-- | test/tsan/custom_mutex0.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tsan/custom_mutex0.cc b/test/tsan/custom_mutex0.cc index 998385ca1..8302fd884 100644 --- a/test/tsan/custom_mutex0.cc +++ b/test/tsan/custom_mutex0.cc @@ -4,7 +4,7 @@ // Test that custom annoations provide normal mutex synchronization // (no race reports for properly protected critical sections). -Mutex mu; +Mutex mu(true, 0); long data; void *thr(void *arg) { |