summaryrefslogtreecommitdiffhomepage
path: root/third_party
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2019-09-07 00:33:22 +0000
committergVisor bot <gvisor-bot@google.com>2019-09-07 00:33:22 +0000
commitc84161e6acb9a7a04fa0a7eecb15d5143c0283ba (patch)
tree2c8dcf6066c231e8bf6ad74dc40e88c85b9c2d60 /third_party
parentf2c95a37af824d9c4502dd99857e73d4d07a4c4d (diff)
parent9e1cbdf565a1f5bf5bbc84bad0103fe2289e817c (diff)
Merge 9e1cbdf5 (automated)
Diffstat (limited to 'third_party')
-rw-r--r--third_party/gvsync/downgradable_rwmutex_unsafe.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/third_party/gvsync/downgradable_rwmutex_unsafe.go b/third_party/gvsync/downgradable_rwmutex_unsafe.go
index 069939033..1f6007aa1 100644
--- a/third_party/gvsync/downgradable_rwmutex_unsafe.go
+++ b/third_party/gvsync/downgradable_rwmutex_unsafe.go
@@ -57,9 +57,6 @@ func (rw *DowngradableRWMutex) RLock() {
// RUnlock undoes a single RLock call.
func (rw *DowngradableRWMutex) RUnlock() {
if RaceEnabled {
- // TODO(jamieliu): Why does this need to be ReleaseMerge instead of
- // Release? IIUC this establishes Unlock happens-before RUnlock, which
- // seems unnecessary.
RaceReleaseMerge(unsafe.Pointer(&rw.writerSem))
RaceDisable()
}