aboutsummaryrefslogtreecommitdiff
path: root/src/race.bash
diff options
context:
space:
mode:
authorFangming.Fang <fangming.fang@arm.com>2018-06-20 09:09:03 +0000
committerCherry Zhang <cherryyz@google.com>2018-11-13 16:57:22 +0000
commit978cfa8e46d71992395d67382e96036596520cb6 (patch)
tree34c202e3f97b942b6dbf71f86ddf3785361ea39f /src/race.bash
parente787b133284263e53154b8b2f8f6078e8f0c9850 (diff)
downloadgo-978cfa8e46d71992395d67382e96036596520cb6.tar.gz
go-978cfa8e46d71992395d67382e96036596520cb6.zip
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>
Diffstat (limited to 'src/race.bash')
-rwxr-xr-xsrc/race.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/race.bash b/src/race.bash
index d673f503a9..e83c175df3 100755
--- a/src/race.bash
+++ b/src/race.bash
@@ -9,7 +9,7 @@
set -e
function usage {
- echo 'race detector is only supported on linux/amd64, linux/ppc64le, freebsd/amd64, netbsd/amd64 and darwin/amd64' 1>&2
+ echo 'race detector is only supported on linux/amd64, linux/ppc64le, linux/arm64, freebsd/amd64, netbsd/amd64 and darwin/amd64' 1>&2
exit 1
}
@@ -21,7 +21,7 @@ case $(uname) in
fi
;;
"Linux")
- if [ $(uname -m) != "x86_64" ] && [ $(uname -m) != "ppc64le" ]; then
+ if [ $(uname -m) != "x86_64" ] && [ $(uname -m) != "ppc64le" ] && [ $(uname -m) != "aarch64" ]; then
usage
fi
;;