]> Cypherpunks repositories - gostls13.git/commit
runtime: fix use of STREX in various exitThread implementations
authorIan Lance Taylor <iant@golang.org>
Sat, 14 Oct 2017 15:46:50 +0000 (08:46 -0700)
committerIan Lance Taylor <iant@golang.org>
Mon, 16 Oct 2017 17:15:39 +0000 (17:15 +0000)
commit5ddd3d588c589ae644cadd2d8e5341669dae888e
treeeab9782878dbde71023a87ecc238753e3f9f4740
parent001fe1d57a357225316d67f1516fde9e2c378bb0
runtime: fix use of STREX in various exitThread implementations

STREX does not permit using the same register for the value to store
and the place where the result is returned. Also the code was wrong
anyhow if the first store failed.

Fixes #22248

Change-Id: I96013497410058514ffcb771c76c86faa1ec559b
Reviewed-on: https://go-review.googlesource.com/70911
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/sys_darwin_arm.s
src/runtime/sys_freebsd_arm.s
src/runtime/sys_netbsd_arm.s
src/runtime/sys_openbsd_arm.s