aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/syscall_windows.go
diff options
context:
space:
mode:
authorMichael Pratt <mpratt@google.com>2022-06-28 15:17:12 -0400
committerHeschi Kreinick <heschi@google.com>2022-07-06 19:34:44 +0000
commitfc07039e2339a80f53e7db5e214b5be504bc1df6 (patch)
tree6b334693dbd8406fd2e5c8b562683218cf874453 /src/runtime/syscall_windows.go
parent9ef614f5aa03ed30664c982c706c98c8b78c99bf (diff)
downloadgo-fc07039e2339a80f53e7db5e214b5be504bc1df6.tar.gz
go-fc07039e2339a80f53e7db5e214b5be504bc1df6.zip
[release-branch.go1.17] runtime: add race annotations to metricsSema
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 #53589. 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 d6481d5b9662b29453004204746945a93a6b4eb2) Reviewed-on: https://go-review.googlesource.com/c/go/+/415196
Diffstat (limited to 'src/runtime/syscall_windows.go')
0 files changed, 0 insertions, 0 deletions