]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: add race instrumentation during walkCompare
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Fri, 25 Aug 2023 15:10:38 +0000 (22:10 +0700)
committerGopher Robot <gobot@golang.org>
Thu, 1 Aug 2024 14:57:13 +0000 (14:57 +0000)
commit09eefb3a4d15bb409ad8a85b505ec9230702a27a
tree2a043117529e5db11d88a576e73354a9fd1e62a7
parent4c05a23bb63efee928f3c3cbe712ae7d562ba588
cmd/compile: add race instrumentation during walkCompare

So the racy usage could be detected after re-writing "==" to
runtime.memequal call.

Updates #61204

Change-Id: Idb4ac37e55813cc87f9d16aa656fb447edf69ea1
Reviewed-on: https://go-review.googlesource.com/c/go/+/601117
Reviewed-by: Egon Elbre <egonelbre@gmail.com>
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/compile/internal/walk/compare.go
src/runtime/race/output_test.go