[go] cmd/compile, runtime: use fine-grained FENCE instructions on riscv64

0 views
Skip to first unread message

Keith Randall (Gerrit)

unread,
May 15, 2026, 12:14:30 PM (17 hours ago) May 15
to Boyao Wang, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Dmitri Shuralyov, Dmitri Shuralyov, Meng Zhuo, golang...@luci-project-accounts.iam.gserviceaccount.com, Joel Sing, Mark Ryan, Pengcheng Wang, Keith Randall, Michael Knyszek, Martin Möhrmann, Gopher Robot, golang-co...@googlegroups.com

Keith Randall submitted the change

Change information

Commit message:
cmd/compile, runtime: use fine-grained FENCE instructions on riscv64

Make use of the newly supported FENCE operands on riscv64 to replace
overly conservative full memory barriers with more precise memory
ordering instructions.
Change-Id: I8e749eee4f2199cca218229e0cf51779fb6003b4
Reviewed-by: Meng Zhuo <mengzh...@gmail.com>
Reviewed-by: Keith Randall <k...@google.com>
Reviewed-by: Dmitri Shuralyov <dmit...@google.com>
Files:
  • M src/cmd/compile/internal/riscv64/ssa.go
  • M src/internal/runtime/atomic/atomic_riscv64.s
  • M src/runtime/atomic_riscv64.s
  • M src/runtime/sys_freebsd_riscv64.s
  • M src/runtime/sys_linux_riscv64.s
Change size: M
Delta: 5 files changed, 39 insertions(+), 15 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: I8e749eee4f2199cca218229e0cf51779fb6003b4
Gerrit-Change-Number: 758020
Gerrit-PatchSet: 5
Gerrit-Owner: Boyao Wang <wang...@bytedance.com>
Gerrit-Reviewer: Dmitri Shuralyov <dmit...@google.com>
Gerrit-Reviewer: Joel Sing <jo...@sing.id.au>
Gerrit-Reviewer: Keith Randall <k...@golang.org>
Gerrit-Reviewer: Keith Randall <k...@google.com>
Gerrit-Reviewer: Mark Ryan <mark...@meta.com>
Gerrit-Reviewer: Martin Möhrmann <moeh...@google.com>
Gerrit-Reviewer: Meng Zhuo <mengzh...@gmail.com>
Gerrit-Reviewer: Michael Knyszek <mkny...@google.com>
Gerrit-CC: Dmitri Shuralyov <dmit...@golang.org>
Gerrit-CC: Gopher Robot <go...@golang.org>
Gerrit-CC: Pengcheng Wang <wangpeng...@bytedance.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages