]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/modfetch: fix concurrent read/write race in modfetch
authorRuss Cox <rsc@golang.org>
Tue, 30 Apr 2019 01:29:16 +0000 (21:29 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 30 Apr 2019 13:12:48 +0000 (13:12 +0000)
commit8e28cd19acc43437e7ccec25dd0572afd6b77f8a
tree220de68fb2e082d32d5551c93183bab979b5b48e
parent203e18883726409205df4af11935d6393ed9ad52
cmd/go/internal/modfetch: fix concurrent read/write race in modfetch

On Windows systems, the failure rate for cmd/go's TestScript/mod_concurrent
is somewhere around 3-10% without this change. With the change, I have yet
to see a failure.

Fixes #31744.

Change-Id: Ib321ebb9556dd8438086cf329dfa083a9e051732
Reviewed-on: https://go-review.googlesource.com/c/go/+/174439
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/go/internal/modfetch/sumdb.go