]> Cypherpunks repositories - gostls13.git/commit
runtime/internal/atomic: deduplicate And/Or code on wasm
authorMauri de Souza Meneguzzo <mauri870@gmail.com>
Tue, 21 Nov 2023 19:34:36 +0000 (19:34 +0000)
committerGopher Robot <gobot@golang.org>
Wed, 22 Nov 2023 04:41:31 +0000 (04:41 +0000)
commit5abae02d273d586b13975bca0e5fda67f4f51e2f
tree2f3315a5b6358a428e07a9ae4555eaec3627121b
parent2c424edd91a07ef200ff639c205ddf6f51a17351
runtime/internal/atomic: deduplicate And/Or code on wasm

When I initially added the wasm code for these ops I did not saw that
wasm actually has the Cas operations implemented, although they are
merely pointer assignments since wasm is single threaded.

Now with a generic implementation for And/Or we can add wasm to the
build tags.

For #61395

Change-Id: I997dc90477c772882d6703df1b795dfc0d90a699
GitHub-Last-Rev: 92736a6e34104a9d234c791673fe0bb79fc97b0b
GitHub-Pull-Request: golang/go#64300
Reviewed-on: https://go-review.googlesource.com/c/go/+/544116
Run-TryBot: Mauri de Souza Meneguzzo <mauri870@gmail.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/runtime/internal/atomic/atomic_andor_generic.go
src/runtime/internal/atomic/atomic_wasm.go