forked from OSchip/llvm-project
tsan: more precise handling of atomic_store(memory_order_release)
llvm-svn: 162994
This commit is contained in:
parent
ef8d1944b8
commit
6f6ba43271
|
@ -85,7 +85,7 @@ static void AtomicStore(ThreadState *thr, uptr pc, volatile T *a, T v,
|
|||
morder mo) {
|
||||
CHECK(mo & (mo_relaxed | mo_release | mo_seq_cst));
|
||||
if (mo & (mo_release | mo_seq_cst))
|
||||
Release(thr, pc, (uptr)a);
|
||||
ReleaseStore(thr, pc, (uptr)a);
|
||||
*a = v;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue