diff options
| author | khr@golang.org <khr@golang.org> | 2026-02-18 09:09:57 -0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2026-02-18 09:30:25 -0800 |
| commit | 45929774c3d5c084cc478afba63c77cf67a68bd7 (patch) | |
| tree | 0c694f6e5eeb0b84b9e68f214f0a90c08f3af635 /src/internal/runtime | |
| parent | 93b6475e1de0f055139bd0926048ee8e36aa7c42 (diff) | |
| download | go-45929774c3d5c084cc478afba63c77cf67a68bd7.tar.xz | |
internal/runtime/gc/scan: require popcnt for x86
The GOAMD64=v1 test disables popcnt instructions, which is a feature
this package's amd64 assembly uses.
Fixes #77674
Change-Id: I7be9bb665838f5da50275f96ef3df398412bb44a
Reviewed-on: https://go-review.googlesource.com/c/go/+/746640
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Keith Randall <khr@google.com>
Auto-Submit: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/internal/runtime')
| -rw-r--r-- | src/internal/runtime/gc/scan/scan_amd64.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/internal/runtime/gc/scan/scan_amd64.go b/src/internal/runtime/gc/scan/scan_amd64.go index 0151804fa5..c378c7a7ee 100644 --- a/src/internal/runtime/gc/scan/scan_amd64.go +++ b/src/internal/runtime/gc/scan/scan_amd64.go @@ -38,4 +38,5 @@ var avx512ScanPackedReqsMet = cpu.X86.HasAVX512VL && cpu.X86.HasAVX512BW && cpu.X86.HasGFNI && cpu.X86.HasAVX512BITALG && - cpu.X86.HasAVX512VBMI + cpu.X86.HasAVX512VBMI && + cpu.X86.HasPOPCNT |
