go/src/cmd
Bryan C. Mills 8c896aa466 cmd/go/internal/lockedfile: add a sync.Mutex to lockedfile.Mutex
The compiler (and race detector) don't interpret locking a file as a
synchronization operation, so we add an explicit (and redundant)
sync.Mutex to make that property clear.

The additional synchronization makes it safe to parallelize the tests
in cmd/go/internal/modfetch/coderepo_test.go, which cuts the wall time
of that test by around 50%.

Updates #30550

Change-Id: Ief3479020ebf9e0fee524a4aae5568697727c683
Reviewed-on: https://go-review.googlesource.com/c/go/+/170597
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Jay Conrod <jayconrod@google.com>
2019-04-03 17:17:40 +00:00
..
addr2line internal/testenv: remove SetModVendor 2019-03-08 23:40:24 +00:00
api cmd/api: use 'go list' to locate transitive dependencies of std 2019-03-08 15:14:27 +00:00
asm cmd/asm: add 'insert program mask' instruction for s390x 2019-03-29 17:34:06 +00:00
buildid
cgo runtime: create library startup for aix/ppc64 2019-03-27 17:22:11 +00:00
compile cmd/compile: trim more unnecessary escape analysis messages 2019-04-02 18:00:32 +00:00
cover cmd/cover: add go.mod file in lineDupDir 2019-03-15 13:00:24 +00:00
dist runtime, cmd/dist, misc/cgo: enable c-archive for aix/ppc64 2019-04-02 16:03:24 +00:00
doc cmd/doc: correctly indent pre-formatted blocks 2019-03-31 23:35:35 +00:00
fix cmd/fix,cmd/cgo,misc/cgo: map the EGLDisplay C type to uintptr in Go 2018-12-15 19:27:41 +00:00
go cmd/go/internal/lockedfile: add a sync.Mutex to lockedfile.Mutex 2019-04-03 17:17:40 +00:00
gofmt go/ast: fix SortImports to handle block comments 2019-03-28 23:49:52 +00:00
internal compile,link: export package name in debug_info 2019-04-02 17:40:36 +00:00
link compile,link: export package name in debug_info 2019-04-02 17:40:36 +00:00
nm cmd/nm: fix cgo tests for aix/ppc64 2019-03-20 13:50:44 +00:00
objdump internal/testenv: remove SetModVendor 2019-03-08 23:40:24 +00:00
pack
pprof all: use "reports whether" consistently instead of "returns whether" 2018-12-02 15:12:26 +00:00
test2json
trace all: fix typos as reported by 'misspell' 2019-02-26 23:02:05 +00:00
vendor cmd: update go.mod versions for vetall bug 2019-03-26 03:57:49 +00:00
vet cmd/vet/all: enable AIX checks 2019-03-28 19:34:53 +00:00
go.mod cmd: update go.mod versions for vetall bug 2019-03-26 03:57:49 +00:00
go.sum cmd: update go.mod versions for vetall bug 2019-03-26 03:57:49 +00:00