1
0
mirror of https://github.com/golang/go synced 2024-11-19 23:14:47 -07:00
go/src
Dmitriy Vyukov 0f4897ae1a sync: improve race instrumentation of WaitGroup
Do not synchronize Add(1) with Wait().
Imitate read on first Add(1) and write on Wait(),
it allows to catch common misuses of WaitGroup:
- Add() called in the additional goroutine itself
- incorrect reuse of WaitGroup with multiple waiters

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/10093044
2013-06-10 22:38:58 +04:00
..
cmd cmd/5l: use guaranteed undefined instruction for UNDEF to match [68]l. 2013-06-11 02:02:42 +08:00
lib9 lib9/utf: remove unneccesary includes 2013-05-31 15:53:26 -07:00
libbio
libmach all: fix typos 2013-06-09 21:50:24 +08:00
pkg sync: improve race instrumentation of WaitGroup 2013-06-10 22:38:58 +04:00
all.bash
all.bat
all.rc
clean.bash
clean.bat
clean.rc
make.bash cmd/dist, make.bash: pass -mmacosx-version-min=10.6 to gcc on Darwin 2013-04-16 13:30:52 -07:00
make.bat
Make.dist
make.rc build: fix make.rc on Plan 9 2013-05-24 13:55:19 -07:00
race.bash
race.bat
run.bash cmd/go: fix LDFLAGS handling, enable misc/cgo/testso on Darwin 2013-05-22 00:32:03 +08:00
run.bat api: add go1.1.txt; update cmd/api to use it 2013-05-06 17:25:09 -07:00
run.rc
sudo.bash cmd/cov: delete 2013-05-24 11:06:06 -07:00