tsan: fix a bug memory access handling
authorDmitry Vyukov <dvyukov@google.com>
Tue, 28 Apr 2015 18:08:42 +0000 (18:08 +0000)
committerDmitry Vyukov <dvyukov@google.com>
Tue, 28 Apr 2015 18:08:42 +0000 (18:08 +0000)
commit25c94eb1523a56d8bbf26cbc06372927f13ffe07
treeace1c966ca1749b773bba78684da5d660ee749e1
parentf4bf3779d818fce12a1bc7b18d6d835fb0928443
tsan: fix a bug memory access handling

We incorrectly replaced shadow slots
when the new value is not stronger than the old one.
The bug can lead to false negatives.
The bug was detected by Go race test suite:
https://github.com/golang/go/issues/10589

llvm-svn: 236008
compiler-rt/lib/tsan/rtl/tsan_update_shadow_word_inl.h
compiler-rt/test/tsan/mop1.c [new file with mode: 0644]