]> Cypherpunks repositories - gostls13.git/commitdiff
internal/abi: remove go122 flag
authorKeith Randall <khr@golang.org>
Wed, 12 Feb 2025 23:24:10 +0000 (15:24 -0800)
committerGopher Robot <gobot@golang.org>
Thu, 13 Feb 2025 08:20:45 +0000 (00:20 -0800)
We no longer need this flag in case we need to rollback.

Change-Id: Id8b8f76380237f2d80a14037e88df4917c843f03
Reviewed-on: https://go-review.googlesource.com/c/go/+/649095
Reviewed-by: Michael Stapelberg <stapelberg@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@google.com>
Auto-Submit: Keith Randall <khr@google.com>

src/internal/abi/switch.go

index 9669fe51d5aa75f11129ba5ebf42aa14e0117a5e..df6f99c945910f4575b72c28f49e2e4c8172f90e 100644 (file)
@@ -27,12 +27,7 @@ type InterfaceSwitchCacheEntry struct {
        Itab uintptr
 }
 
-const go122InterfaceSwitchCache = true
-
 func UseInterfaceSwitchCache(goarch string) bool {
-       if !go122InterfaceSwitchCache {
-               return false
-       }
        // We need an atomic load instruction to make the cache multithreaded-safe.
        // (AtomicLoadPtr needs to be implemented in cmd/compile/internal/ssa/_gen/ARCH.rules.)
        switch goarch {