]> Cypherpunks repositories - gostls13.git/commit
runtime: commit to spinbitmutex GOEXPERIMENT
authorRhys Hiltner <rhys.hiltner@gmail.com>
Fri, 14 Mar 2025 19:38:34 +0000 (12:38 -0700)
committerGopher Robot <gobot@golang.org>
Tue, 22 Apr 2025 17:00:26 +0000 (10:00 -0700)
commit7a177114df3e26f4362378e907a869c4fbbf38b7
treeca0b576cd709f8d8b879b75eafd537ba7c756735
parent7ce45a014c52375d6a3da577828c9f035a72857a
runtime: commit to spinbitmutex GOEXPERIMENT

Use the "spinbit" mutex implementation always (including on platforms
that need to emulate atomic.Xchg8), and delete the prior "tristate"
implementations.

The exception is GOARCH=wasm, where the Go runtime does not use multiple
threads.

For #68578

Change-Id: Ifc29bbfa05071d776c23a19ae185891a03a82417
Reviewed-on: https://go-review.googlesource.com/c/go/+/658456
Auto-Submit: Rhys Hiltner <rhys.hiltner@gmail.com>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/internal/buildcfg/exp.go
src/internal/goexperiment/exp_spinbitmutex_off.go [deleted file]
src/internal/goexperiment/exp_spinbitmutex_on.go [deleted file]
src/internal/goexperiment/flags.go
src/runtime/lock_futex_tristate.go [deleted file]
src/runtime/lock_sema_tristate.go [deleted file]
src/runtime/lock_spinbit.go
src/runtime/runtime2.go