]> Cypherpunks repositories - gostls13.git/commit
internal/race,runtime: linkname contents of internal/race
authorMichael Pratt <mpratt@google.com>
Mon, 16 Sep 2024 15:22:02 +0000 (11:22 -0400)
committerGopher Robot <gobot@golang.org>
Wed, 30 Oct 2024 14:20:18 +0000 (14:20 +0000)
commite25b913127ac8ba26c4ecc39288c7f8781f4ef5d
treec027f0957231c4e9e6fff057fad5051bb2a2953e
parent3b424cfa9d2704a283bdba544497daad0d47fb65
internal/race,runtime: linkname contents of internal/race

Rather than importing runtime directly, linkname the functions from
runtime. This allows importing internal/race from internal/runtime/*
packages, similar to internal/asan and internal/msan.

For #54766.

Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-longtest-swissmap
Change-Id: Ibd9644557782076e3cee7927c8a6e6d2909f0a6e
Reviewed-on: https://go-review.googlesource.com/c/go/+/616458
Reviewed-by: Keith Randall <khr@golang.org>
Auto-Submit: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@google.com>
src/go/build/deps_test.go
src/internal/race/race.go
src/runtime/race.go