aboutsummaryrefslogtreecommitdiff
path: root/src/internal/cpu/cpu.go
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2025-08-28 16:50:12 +0200
committerGopher Robot <gobot@golang.org>2025-08-29 10:01:06 -0700
commitfe42628dae69c907bc579219a38fce6bc8f18c6c (patch)
tree44c466b7ca9111d2a83d9b3ece9c217470783790 /src/internal/cpu/cpu.go
parent94b7d519bda29adad90766aaa5d2297708129a39 (diff)
downloadgo-fe42628dae69c907bc579219a38fce6bc8f18c6c.tar.xz
internal/cpu: inline DebugOptions
internal/cpu.DebugOptions is only ever set in runtime.cpuinit on unix-like platforms. DebugOptions itself is only used in MustHaveDebugOptionsSupport, so inline the GOOS check there. Change-Id: I6a35d6b8afcdadfc59585258002f53c20026116c Reviewed-on: https://go-review.googlesource.com/c/go/+/699775 Reviewed-by: Keith Randall <khr@google.com> Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Keith Randall <khr@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Florian Lehner <lehner.florian86@gmail.com>
Diffstat (limited to 'src/internal/cpu/cpu.go')
-rw-r--r--src/internal/cpu/cpu.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/internal/cpu/cpu.go b/src/internal/cpu/cpu.go
index e92c1851a2..9470b532df 100644
--- a/src/internal/cpu/cpu.go
+++ b/src/internal/cpu/cpu.go
@@ -8,11 +8,6 @@ package cpu
import _ "unsafe" // for linkname
-// DebugOptions is set to true by the runtime if the OS supports reading
-// GODEBUG early in runtime startup.
-// This should not be changed after it is initialized.
-var DebugOptions bool
-
// CacheLinePad is used to pad structs to avoid false sharing.
type CacheLinePad struct{ _ [CacheLinePadSize]byte }