]> Cypherpunks repositories - gostls13.git/commit
cmd,runtime: enable race detector on arm64
authorFangming.Fang <fangming.fang@arm.com>
Wed, 20 Jun 2018 09:09:03 +0000 (09:09 +0000)
committerCherry Zhang <cherryyz@google.com>
Tue, 13 Nov 2018 16:57:22 +0000 (16:57 +0000)
commit978cfa8e46d71992395d67382e96036596520cb6
tree34c202e3f97b942b6dbf71f86ddf3785361ea39f
parente787b133284263e53154b8b2f8f6078e8f0c9850
cmd,runtime: enable race detector on arm64

Changes include:
1. enable compiler option -race for arm64
2. add runtime/race_arm64.s to manage the calls from Go to the compiler-rt runtime
3. change racewalk.go to call racefuncenterfp instead of racefuncenter on arm64 to
   allow the caller pc to be obtained in the asm code before calling the tsan version
4. race_linux_arm64.syso comes from compiler-rt which just supports 48bit VA, compiler-rt
   is fetched from master branch which latest commit is 3aa2b775d08f903f804246af10b

Fixes #25682

Change-Id: I04364c580b8157fd117deecae74a4656ba16e005
Reviewed-on: https://go-review.googlesource.com/c/138675
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/compile/internal/gc/racewalk.go
src/cmd/go/internal/work/init.go
src/cmd/internal/sys/supported.go
src/cmd/link/internal/ld/config.go
src/race.bash
src/runtime/asm_arm64.s
src/runtime/race/README
src/runtime/race/race.go
src/runtime/race/race_linux_arm64.syso [new file with mode: 0644]
src/runtime/race_arm64.s [new file with mode: 0644]