]> Cypherpunks repositories - gostls13.git/commit
internal/buildcfg: expand spinbitmutex platforms
authorRhys Hiltner <rhys.hiltner@gmail.com>
Fri, 14 Mar 2025 19:04:51 +0000 (12:04 -0700)
committerGopher Robot <gobot@golang.org>
Mon, 17 Mar 2025 20:10:18 +0000 (13:10 -0700)
commit5e9820245574bdf67f28156db4b00191b1b3696f
treed57e8fb23a6d3706b0ba0d69a51a1b4691a3e67e
parente41ec30c8a7369872d22113b022b2a31757ff72b
internal/buildcfg: expand spinbitmutex platforms

Go 1.24 included the spinbitmutex GOEXPERIMENT for several popular
architectures, based on their native support an atomic primitive (8-bit
exchange) that aided its efficient implementation.

Move towards making the new mutex implementation permanent, so it fully
replaces the two previous (sema- and futex-based "tristate")
implementations.

For #68578

Change-Id: I888a73959df42eb0ec53875309c446675af8f09d
Reviewed-on: https://go-review.googlesource.com/c/go/+/658455
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Rhys Hiltner <rhys.hiltner@gmail.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/internal/buildcfg/exp.go