]> Cypherpunks repositories - gostls13.git/commit
runtime: use BX instead of R15 in race detector
authorKeith Randall <khr@golang.org>
Wed, 3 Feb 2021 20:25:46 +0000 (12:25 -0800)
committerKeith Randall <khr@golang.org>
Tue, 23 Feb 2021 20:06:07 +0000 (20:06 +0000)
commita4dac8bd220ff893d7df9cb6fbaf56ecfdd66ad4
tree99b7643c9e07e725470204a5e04363d15d4c01d9
parentc49c7a675a2c8ee7591a2d6243255813856b65ce
runtime: use BX instead of R15 in race detector

If the race detector were runnable in dynamic linking mode,
then R15 would get clobbered. I don't think it is, so maybe
not a problem, but can't hurt to clean it up.

It also lets CL 283474 pass cleanly when checking the whole stdlib
(together with CL 288452).

Change-Id: I5a5021ecc7e7b8bed1cd3a7067c39b24c09e0783
Reviewed-on: https://go-review.googlesource.com/c/go/+/289270
Trust: Keith Randall <khr@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/runtime/race_amd64.s