]> Cypherpunks repositories - gostls13.git/commit
runtime: save g register during arm64 race detector callbacks
authorKeith Randall <khr@google.com>
Thu, 17 Oct 2019 21:37:55 +0000 (14:37 -0700)
committerKeith Randall <khr@golang.org>
Thu, 17 Oct 2019 21:58:45 +0000 (21:58 +0000)
commitab81efa3dcac8bc9dca9a051ce3f665cfaeb6dc3
tree95a60908e1b2ef4243e5b09052d8338ef570ebe0
parentf95bf8b64bd1c4e53d27dcd39e128a7b4492382f
runtime: save g register during arm64 race detector callbacks

The race detector C code expects the g register (aka R28) to be
preserved per the C calling convention. Make sure we save/restore it.

Once this is in we can revert the O3 -> O1 change to racebuild.

Change-Id: Ia785b2717c136f565d45bed283e87b744e35c62d
Reviewed-on: https://go-review.googlesource.com/c/go/+/201744
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/runtime/race_arm64.s