diff options
| author | aimuz <mr.imuz@gmail.com> | 2025-09-03 14:15:06 +0000 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-09-04 07:30:42 -0700 |
| commit | b7c20413c5b78b7dfc7f7de52f333a8ca85cd55b (patch) | |
| tree | cdae9c127ee69cda79b5675f543a2ddc0f2abab7 /src/runtime/os_linux.go | |
| parent | df290384864c0b3cbb557ef11fc95a29d52f6aca (diff) | |
| download | go-b7c20413c5b78b7dfc7f7de52f333a8ca85cd55b.tar.xz | |
runtime: remove obsolete osArchInit function
The osArchInit function was introduced as a workaround for a Linux kernel bug
that corrupted vector registers on x86 CPUs during signal delivery.
The bug was introduced in Linux 5.2 and fixed in 5.3.15, 5.4.2, and all 5.5 and later kernels.
The fix was also back-ported by major distros.
Change-Id: I59990a7df104843955301c5cb8a547614eba145b
GitHub-Last-Rev: 8425af458bfaad0d64d21ff3f3e0049d186f44ed
GitHub-Pull-Request: golang/go#75246
Reviewed-on: https://go-review.googlesource.com/c/go/+/700555
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
Diffstat (limited to 'src/runtime/os_linux.go')
| -rw-r--r-- | src/runtime/os_linux.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/runtime/os_linux.go b/src/runtime/os_linux.go index 0ec5e43007..c9d25a5be8 100644 --- a/src/runtime/os_linux.go +++ b/src/runtime/os_linux.go @@ -356,7 +356,6 @@ func getHugePageSize() uintptr { func osinit() { numCPUStartup = getCPUCount() physHugePageSize = getHugePageSize() - osArchInit() vgetrandomInit() } |
