Skip to content

Commit 69a8954

Browse files
Martin Möhrmanngopherbot
Martin Möhrmann
authored andcommitted
runtime: document GODEBUG=cpu.* in runtime package
So far was only documented in doc/diagnostics. Fixes: #54183 Change-Id: Iab67a1500547f30325453c614a2f2f6621dfadb3 Reviewed-on: https://go-review.googlesource.com/c/go/+/423275 TryBot-Result: Gopher Robot <[email protected]> Auto-Submit: Michael Knyszek <[email protected]> Run-TryBot: Michael Knyszek <[email protected]> Reviewed-by: Martin Möhrmann <[email protected]> Reviewed-by: Michael Knyszek <[email protected]> Reviewed-by: Lynn Boger <[email protected]>
1 parent 95c125a commit 69a8954

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/runtime/extern.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ It is a comma-separated list of name=val pairs setting these named variables:
4242
clobber the memory content of an object with bad content when it frees
4343
the object.
4444
45+
cpu.*: cpu.all=off disables the use of all optional instruction set extensions.
46+
cpu.extension=off disables use of instructions from the specified instruction set extension.
47+
extension is the lower case name for the instruction set extension such as sse41 or avx
48+
as listed in internal/cpu package. As an example cpu.avx=off disables runtime detection
49+
and thereby use of AVX instructions.
50+
4551
cgocheck: setting cgocheck=0 disables all checks for packages
4652
using cgo to incorrectly pass Go pointers to non-Go code.
4753
Setting cgocheck=1 (the default) enables relatively cheap

0 commit comments

Comments
 (0)