]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: on arm32, detect whether we have sync instructions
authorKeith Randall <khr@golang.org>
Tue, 29 Aug 2023 21:23:59 +0000 (14:23 -0700)
committerKeith Randall <khr@golang.org>
Tue, 31 Oct 2023 20:38:55 +0000 (20:38 +0000)
commit66b8107a26e515bbe19855d358bdf12bd6326347
treeeb8173422be33c4319f17c931187aac7fa863a72
parentdd84bb682482390bb8465482cb7b13d2e3b17297
runtime: on arm32, detect whether we have sync instructions

Make the choice of using these instructions dynamic (triggered by cpu
feature detection) rather than static (trigered by GOARM setting).

if GOARM>=7, we know we have them.
For GOARM=5/6, dynamically dispatch based on auxv information.

Update #17082
Update #61588

Change-Id: I8a50481d942f62cf36348998a99225d0d242f8af
Reviewed-on: https://go-review.googlesource.com/c/go/+/525637
TryBot-Result: Gopher Robot <gobot@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Run-TryBot: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/go/internal/work/gc.go
src/internal/cpu/cpu.go
src/internal/cpu/cpu_arm.go
src/runtime/internal/atomic/atomic_arm.go
src/runtime/internal/atomic/atomic_arm.s
src/runtime/os_freebsd.go
src/runtime/os_freebsd_arm.go
src/runtime/os_linux.go
src/runtime/os_linux_arm.go