]> Cypherpunks repositories - gostls13.git/commit
internal/trace: fix race condition in gc-stress
authorMichael Pratt <mpratt@google.com>
Fri, 9 Feb 2024 19:16:11 +0000 (14:16 -0500)
committerGopher Robot <gobot@golang.org>
Fri, 9 Feb 2024 20:10:45 +0000 (20:10 +0000)
commit09c62a86a96e51d535336de1c7b7e10cd3acd849
tree14ddcd22a492d64ec9bfa04b911eb58566166e69
parent9fa153b729969855fcb694e12c16e20b1407ed9c
internal/trace: fix race condition in gc-stress

Multiple goroutines all writing to the same sink triggers the race detector,
rightfully so.

Change-Id: Ia64836d0d88c0f587a6cb96ed747f656a3c1804a
Reviewed-on: https://go-review.googlesource.com/c/go/+/562997
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/internal/trace/v2/testdata/testprog/gc-stress.go