]> Cypherpunks repositories - gostls13.git/commit
internal/cpu: inline DebugOptions
authorTobias Klauser <tklauser@distanz.ch>
Thu, 28 Aug 2025 14:50:12 +0000 (16:50 +0200)
committerGopher Robot <gobot@golang.org>
Fri, 29 Aug 2025 17:01:06 +0000 (10:01 -0700)
commitfe42628dae69c907bc579219a38fce6bc8f18c6c
tree44c466b7ca9111d2a83d9b3ece9c217470783790
parent94b7d519bda29adad90766aaa5d2297708129a39
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>
src/internal/cpu/cpu.go
src/internal/cpu/cpu_test.go
src/runtime/proc.go