tsan: more precise handling of atomic_store(memory_order_release)

llvm-svn: 162994
This commit is contained in:
Dmitry Vyukov 2012-08-31 13:22:13 +00:00
parent ef8d1944b8
commit 6f6ba43271
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}