]> Cypherpunks repositories - gostls13.git/commit
runtime: guard VZEROUPPER on CPU feature
authorCherry Zhang <cherryyz@google.com>
Wed, 26 Feb 2020 01:30:37 +0000 (20:30 -0500)
committerCherry Zhang <cherryyz@google.com>
Wed, 26 Feb 2020 01:52:42 +0000 (01:52 +0000)
commitc46ffdd2eca339918ed30b6ba9d4715ba769d35d
tree02888c9df18e9afafd0a59ad94b63761a2a01ba8
parent089e482b3dd2026178c8ee5b90d9aadb6bf81239
runtime: guard VZEROUPPER on CPU feature

In CL 219131 we inserted a VZEROUPPER instruction on darwin/amd64.
The instruction is not available on pre-AVX machines. Guard it
with CPU feature.

Fixes #37459.

Change-Id: I9a064df277d091be4ee594eda5c7fd8ee323102b
Reviewed-on: https://go-review.googlesource.com/c/go/+/221057
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/runtime/cpuflags.go
src/runtime/mkpreempt.go
src/runtime/preempt_amd64.s