]> Cypherpunks.ru repositories - gostls13.git/commit
runtime/internal/atomic: add LSE atomics instructions to arm64
authorJonathan Swinney <jswinney@amazon.com>
Sat, 17 Apr 2021 01:12:28 +0000 (01:12 +0000)
committerCherry Mui <cherryyz@google.com>
Wed, 12 May 2021 16:18:01 +0000 (16:18 +0000)
commit07ff596404b03a8e01ed53f1553c59eb215dc697
tree739eb37e5d7ee949b2682074b00f63b5aaed8952
parent03886707f9e8db668bd1fd7b8f99799dba0408e3
runtime/internal/atomic: add LSE atomics instructions to arm64

As a follow up to an earlier change[1] to add ARMv8+LSE instructions in
the compiler generated atomic intrinsics, make the same change in the
runtime library. Since not all ARMv8 systems support LSE instructions,
they are protected by a feature-flag branch.

[1]: golang.org/cl/234217 commit: ecc3f5112eba

Change-Id: I0e2fb22e78d5eddb6547863667a8865946679a00
Reviewed-on: https://go-review.googlesource.com/c/go/+/310591
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Heschi Kreinick <heschi@google.com>
src/runtime/internal/atomic/atomic_arm64.go
src/runtime/internal/atomic/atomic_arm64.s