aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/stack_test.go
diff options
context:
space:
mode:
authorMartin Möhrmann <moehrmann@google.com>2018-01-26 12:14:27 +0100
committerBrad Fitzpatrick <bradfitz@golang.org>2018-05-22 18:49:31 +0000
commitf045ddc624dea292257249a618e4ad1bd2bd5c6e (patch)
tree24569109aedd91e0c6540b8f2af723c0fe9c0a03 /src/runtime/stack_test.go
parent3d15f768814e8b06ae159b4da8f34a0c702a4cf1 (diff)
downloadgo-f045ddc624dea292257249a618e4ad1bd2bd5c6e.tar.xz
internal/cpu: add experiment to disable CPU features with GODEBUGCPU
Needs the go compiler to be build with GOEXPERIMENT=debugcpu to be active. The GODEBUGCPU environment variable can be used to disable usage of specific processor features in the Go standard library. This is useful for testing and benchmarking different code paths that are guarded by internal/cpu variable checks. Use of processor features can not be enabled through GODEBUGCPU. To disable usage of AVX and SSE41 cpu features on GOARCH amd64 use: GODEBUGCPU=avx=0,sse41=0 The special "all" option can be used to disable all options: GODEBUGCPU=all=0 Updates #12805 Updates #15403 Change-Id: I699c2e6f74d98472b6fb4b1e5ffbf29b15697aab Reviewed-on: https://go-review.googlesource.com/91737 Run-TryBot: Martin Möhrmann <moehrmann@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime/stack_test.go')
0 files changed, 0 insertions, 0 deletions