[llvm-commits] [compiler-rt] r162995 - /compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_mutex.cc
Dmitry Vyukov
dvyukov at google.com
Fri Aug 31 06:42:28 PDT 2012
Author: dvyukov
Date: Fri Aug 31 08:42:28 2012
New Revision: 162995
URL: http://llvm.org/viewvc/llvm-project?rev=162995&view=rev
Log:
tsan: slightly optimize mutex unlock
Modified:
compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_mutex.cc
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_mutex.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_mutex.cc?rev=162995&r1=162994&r2=162995&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_mutex.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_mutex.cc Fri Aug 31 08:42:28 2012
@@ -115,7 +115,7 @@
s->owner_tid = SyncVar::kInvalidTid;
thr->clock.set(thr->tid, thr->fast_state.epoch());
thr->fast_synch_epoch = thr->fast_state.epoch();
- thr->clock.release(&s->clock);
+ thr->clock.ReleaseStore(&s->clock);
StatInc(thr, StatSyncRelease);
} else {
StatInc(thr, StatMutexRecUnlock);
@@ -188,7 +188,7 @@
TraceAddEvent(thr, thr->fast_state.epoch(), EventTypeUnlock, addr);
thr->clock.set(thr->tid, thr->fast_state.epoch());
thr->fast_synch_epoch = thr->fast_state.epoch();
- thr->clock.release(&s->clock);
+ thr->clock.ReleaseStore(&s->clock);
StatInc(thr, StatSyncRelease);
} else {
StatInc(thr, StatMutexRecUnlock);
More information about the llvm-commits
mailing list