-
Notifications
You must be signed in to change notification settings - Fork 18k
runtime/metrics: data race detected in Read [1.18 backport] #53590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Milestone
Comments
Change https://go.dev/cl/415195 mentions this issue: |
Closed by merging 2f43de6 to release-branch.go1.18. |
gopherbot
pushed a commit
that referenced
this issue
Jul 6, 2022
metricsSema protects the metrics map. The map implementation is race instrumented regardless of which package is it called from. semacquire/semrelease are not automatically race instrumented, so we can trigger race false positives without manually annotating our lock acquire and release. See similar instrumentation on trace.shutdownSema and reflectOffs.lock. Fixes #53590. For #53542. Change-Id: Ia3fd239ac860e037d09c7cb9c4ad267391e70705 Reviewed-on: https://go-review.googlesource.com/c/go/+/414517 Run-TryBot: Michael Pratt <mpratt@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com> (cherry picked from commit d6481d5) Reviewed-on: https://go-review.googlesource.com/c/go/+/415195
bradfitz
pushed a commit
to tailscale/go
that referenced
this issue
Jul 14, 2022
metricsSema protects the metrics map. The map implementation is race instrumented regardless of which package is it called from. semacquire/semrelease are not automatically race instrumented, so we can trigger race false positives without manually annotating our lock acquire and release. See similar instrumentation on trace.shutdownSema and reflectOffs.lock. Fixes golang#53590. For golang#53542. Change-Id: Ia3fd239ac860e037d09c7cb9c4ad267391e70705 Reviewed-on: https://go-review.googlesource.com/c/go/+/414517 Run-TryBot: Michael Pratt <mpratt@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com> (cherry picked from commit d6481d5) Reviewed-on: https://go-review.googlesource.com/c/go/+/415195
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
@prattmic requested issue #53542 to be considered for backport to the next 1.18 minor release.
The text was updated successfully, but these errors were encountered: