go/src/pkg/sync
Rémy Oudompheng 5bb3a66a97 sync, sync/atomic: do not corrupt race detector after a nil dereference.
The race detector uses a global lock to analyze atomic
operations. A panic in the middle of the code leaves the
lock acquired.

Similarly, the sync package may leave the race detectro
inconsistent when methods are called on nil pointers.

R=golang-dev, r, minux.ma, dvyukov, rsc, adg
CC=golang-dev
https://golang.org/cl/7981043
2013-04-08 23:46:54 +02:00
..
atomic sync, sync/atomic: do not corrupt race detector after a nil dereference. 2013-04-08 23:46:54 +02:00
cond.go sync, sync/atomic: do not corrupt race detector after a nil dereference. 2013-04-08 23:46:54 +02:00
cond_test.go
example_test.go sync: improve WaitGroup example by putting the call to Done in a 2013-02-07 00:39:52 +08:00
export_test.go
mutex.go sync, sync/atomic: do not corrupt race detector after a nil dereference. 2013-04-08 23:46:54 +02:00
mutex_test.go
once.go
once_test.go sync: add Once test with panic 2012-09-20 23:29:29 +04:00
race.go race: sync changes 2012-10-07 22:07:03 +04:00
race0.go race: sync changes 2012-10-07 22:07:03 +04:00
runtime.go
runtime_sema_test.go
rwmutex.go sync, sync/atomic: do not corrupt race detector after a nil dereference. 2013-04-08 23:46:54 +02:00
rwmutex_test.go
waitgroup.go sync, sync/atomic: do not corrupt race detector after a nil dereference. 2013-04-08 23:46:54 +02:00
waitgroup_test.go sync: mention that WaitGroup.Add panics 2012-07-19 11:55:03 -07:00