Skip to content

Commit c75b10b

Browse files
committed
runtime/race: add GOAMD64=v3 version of linux race .syso
Makes -race mode faster, in the 15% speedup range. Update #53743 Change-Id: I735eb71902b41c924c9f885ded8f7a350a56b751 Reviewed-on: https://go-review.googlesource.com/c/go/+/444396 Run-TryBot: Keith Randall <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Keith Randall <[email protected]> Reviewed-by: Than McIntosh <[email protected]>
1 parent 4c61e07 commit c75b10b

File tree

5 files changed

+6
-13
lines changed

5 files changed

+6
-13
lines changed

src/runtime/race/README

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ To update the .syso files use golang.org/x/build/cmd/racebuild.
66

77
race_darwin_amd64.syso built with LLVM 127e59048cd3d8dbb80c14b3036918c114089529 and Go 59ab6f351a370a27458755dc69f4a837e55a05a6.
88
race_freebsd_amd64.syso built with LLVM 127e59048cd3d8dbb80c14b3036918c114089529 and Go 59ab6f351a370a27458755dc69f4a837e55a05a6.
9-
race_linux_amd64.syso built with LLVM 127e59048cd3d8dbb80c14b3036918c114089529 and Go 59ab6f351a370a27458755dc69f4a837e55a05a6.
109
race_linux_ppc64le.syso built with LLVM 41cb504b7c4b18ac15830107431a0c1eec73a6b2 and Go 851ecea4cc99ab276109493477b2c7e30c253ea8.
1110
race_netbsd_amd64.syso built with LLVM 41cb504b7c4b18ac15830107431a0c1eec73a6b2 and Go 851ecea4cc99ab276109493477b2c7e30c253ea8.
1211
race_windows_amd64.syso built with LLVM 89f7ccea6f6488c443655880229c54db1f180153 and Go f62d3202bf9dbb3a00ad2a2c63ff4fa4188c5d3b.
1312
race_linux_arm64.syso built with LLVM 41cb504b7c4b18ac15830107431a0c1eec73a6b2 and Go 851ecea4cc99ab276109493477b2c7e30c253ea8.
1413
race_darwin_arm64.syso built with LLVM 41cb504b7c4b18ac15830107431a0c1eec73a6b2 and Go 851ecea4cc99ab276109493477b2c7e30c253ea8.
1514
race_openbsd_amd64.syso built with LLVM fcf6ae2f070eba73074b6ec8d8281e54d29dbeeb and Go 8f2db14cd35bbd674cb2988a508306de6655e425.
1615
race_linux_s390x.syso built with LLVM 41cb504b7c4b18ac15830107431a0c1eec73a6b2 and Go 851ecea4cc99ab276109493477b2c7e30c253ea8.
16+
internal/amd64v3/race_linux.syso built with LLVM 74c2d4f6024c8f160871a2baa928d0b42415f183 and Go c0f27eb3d580c8b9efd73802678eba4c6c9461be.
17+
internal/amd64v1/race_linux.syso built with LLVM 74c2d4f6024c8f160871a2baa928d0b42415f183 and Go c0f27eb3d580c8b9efd73802678eba4c6c9461be.
Binary file not shown.
Binary file not shown.

src/runtime/race/race_v1_amd64.go

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
//go:build linux || darwin || freebsd || netbsd || openbsd || windows
2-
// +build linux darwin freebsd netbsd openbsd windows
1+
//go:build (linux && !amd64.v3) || darwin || freebsd || netbsd || openbsd || windows
2+
// +build linux,!amd64.v3 darwin freebsd netbsd openbsd windows
33

44
package race
55

66
import _ "runtime/race/internal/amd64v1"
7-
8-
// Note: the build line above will eventually be something
9-
// like go:build linux && !amd64.v3 || darwin && !amd64.v3 || ...
10-
// as we build v3 versions for each OS.

src/runtime/race/race_v3_amd64.go

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
//go:build none
2-
// +build none
1+
//go:build linux && amd64.v3
2+
// +build linux,amd64.v3
33

44
package race
55

66
import _ "runtime/race/internal/amd64v3"
7-
8-
// Note: the build line above will eventually be something
9-
// like go:build linux && amd64.v3 || darwin && amd64.v3 || ...
10-
// as we build v3 versions for each OS.

0 commit comments

Comments
 (0)