1
0
mirror of https://github.com/golang/go synced 2024-11-08 03:36:12 -07:00
go/src/sync
Michael Pratt b4f3d52f6a sync: document RWMutex race semantics
RWMutex provides explicit acquire/release synchronization events to the
race detector to model the mutex. It disables sync events within the
methods to avoid e.g., the atomics from adding false synchronization
events, which could cause false negatives in the race detector.

Change-Id: I5126ce2efaab151811ac264864aab1fa025a4aaf
Reviewed-on: https://go-review.googlesource.com/c/go/+/270865
Run-TryBot: Michael Pratt <mpratt@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
Trust: Michael Pratt <mpratt@google.com>
2020-11-18 20:12:03 +00:00
..
atomic runtime/internal/atomic: panic nicely on unaligned 64-bit atomics 2020-10-16 17:31:17 +00:00
cond_test.go all: add empty line between copyright header and package clause 2020-08-17 09:45:44 +00:00
cond.go
example_pool_test.go
example_test.go
export_test.go sync: fix pool wrap-around test 2019-06-26 19:48:39 +00:00
map_bench_test.go sync: add new Map method LoadAndDelete 2020-02-25 14:31:55 +00:00
map_reference_test.go sync: add new Map method LoadAndDelete 2020-02-25 14:31:55 +00:00
map_test.go sync: delete dirty keys inside Map.LoadAndDelete 2020-08-24 20:05:41 +00:00
map.go sync: delete dirty keys inside Map.LoadAndDelete 2020-08-24 20:05:41 +00:00
mutex_test.go sync: fix goroutine leak for when TestMutexFairness times out 2020-08-14 23:04:16 +00:00
mutex.go sync: yield to the waiter when unlocking a starving mutex 2019-11-09 19:31:32 +00:00
once_test.go
once.go sync: document that Once must not be copied 2020-10-23 19:57:55 +00:00
pool_test.go sync: only check for successful PopHeads in long mode 2019-06-26 19:48:42 +00:00
pool.go cmd/go,cmd/compile,sync: remove special import case in cmd/go 2020-10-26 20:12:53 +00:00
poolqueue.go sync: fix typo in pooldequeue 2020-10-14 13:38:41 +00:00
runtime2_lockrank.go runtime, sync: add copyright headers to new files 2020-07-25 03:26:17 +00:00
runtime2.go runtime, sync: add copyright headers to new files 2020-07-25 03:26:17 +00:00
runtime_sema_test.go
runtime.go runtime: static lock ranking for the runtime (enabled by GOEXPERIMENT) 2020-04-07 21:51:03 +00:00
rwmutex_test.go net/textproto, sync: unlock mutexes appropriately before panics 2020-04-08 16:19:51 +00:00
rwmutex.go sync: document RWMutex race semantics 2020-11-18 20:12:03 +00:00
waitgroup_test.go sync: deflake TestWaitGroupMisuse3 2019-12-06 05:12:15 +00:00
waitgroup.go