]> Cypherpunks repositories - gostls13.git/commit
runtime/internal/atomic: add memory barrier for mips Cas on failure
authorMauri de Souza Meneguzzo <mauri870@gmail.com>
Tue, 17 Oct 2023 22:54:27 +0000 (22:54 +0000)
committerGopher Robot <gobot@golang.org>
Tue, 24 Oct 2023 17:49:25 +0000 (17:49 +0000)
commit25ad137cf4f0823b877a19f36479dbde005bfa10
tree92656ec542090457f2232bc472a020aff2c4c870
parent983d90e11dd0e12a484def454530fe9f5de031fc
runtime/internal/atomic: add memory barrier for mips Cas on failure

Add a memory barrier on the failure case of the
compare-and-swap for mips, this avoids potential
race conditions.

For #63506

Change-Id: I3df1479d1438ba72aa72567eb3dea76ff745e98d
GitHub-Last-Rev: 2101b9fd446f28f856986b27d20f92cd4a1f4fef
GitHub-Pull-Request: golang/go#63604
Reviewed-on: https://go-review.googlesource.com/c/go/+/536116
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/runtime/internal/atomic/atomic_mipsx.go
src/runtime/internal/atomic/atomic_mipsx.s