From: Keith Randall Date: Wed, 12 Feb 2025 23:24:10 +0000 (-0800) Subject: internal/abi: remove go122 flag X-Git-Tag: go1.25rc1~1058 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3902e9ef4e4543c6ac7371174a122ca090af971a;p=gostls13.git internal/abi: remove go122 flag 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 LUCI-TryBot-Result: Go LUCI Reviewed-by: Keith Randall Auto-Submit: Keith Randall --- diff --git a/src/internal/abi/switch.go b/src/internal/abi/switch.go index 9669fe51d5..df6f99c945 100644 --- a/src/internal/abi/switch.go +++ b/src/internal/abi/switch.go @@ -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 {