]> Cypherpunks repositories - gostls13.git/commit
internal/runtime/atomic: add Xchg8 for s390x and wasm
authorRhys Hiltner <rhys.hiltner@gmail.com>
Fri, 14 Mar 2025 16:36:06 +0000 (09:36 -0700)
committerGopher Robot <gobot@golang.org>
Fri, 14 Mar 2025 22:42:34 +0000 (15:42 -0700)
commit3c3b8dd4f0590881f7010014985d05cce1c9e943
treec8ed51101ff6ea5b37fcc652da3f4276afcbbf8e
parent580b6ee646809cdd409b3e0d311e1ec35c72aa6b
internal/runtime/atomic: add Xchg8 for s390x and wasm

This makes the single-byte atomic.Xchg8 operation available on all
GOARCHes, including those without direct / single-instruction support.

Fixes #69735

Change-Id: Icb6aff8f907257db81ea440dc4d29f96b3cff6c4
Reviewed-on: https://go-review.googlesource.com/c/go/+/657936
Reviewed-by: Mauri de Souza Meneguzzo <mauri870@gmail.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@google.com>
Auto-Submit: Rhys Hiltner <rhys.hiltner@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/internal/runtime/atomic/atomic_arm.go
src/internal/runtime/atomic/atomic_s390x.go
src/internal/runtime/atomic/atomic_wasm.go
src/internal/runtime/atomic/xchg8.go [new file with mode: 0644]
src/internal/runtime/atomic/xchg8_test.go