]> Cypherpunks repositories - gostls13.git/commit
sync, sync/atomic: do not corrupt race detector after a nil dereference.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Mon, 8 Apr 2013 21:46:54 +0000 (23:46 +0200)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Mon, 8 Apr 2013 21:46:54 +0000 (23:46 +0200)
commit5bb3a66a973ea87494b9197091e8c1f122080627
tree49d38bffe48602ffea123ef25d615996525ac828
parentbd1cd1ddeac67807bb84170bc79579f157898b91
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
src/pkg/runtime/race/testdata/atomic_test.go
src/pkg/runtime/race/testdata/sync_test.go
src/pkg/sync/atomic/race.go
src/pkg/sync/cond.go
src/pkg/sync/mutex.go
src/pkg/sync/rwmutex.go
src/pkg/sync/waitgroup.go