From 87e72769fa74a2ef0bd81a3fd4febe75b8fc6731 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Thu, 4 Sep 2025 17:13:37 +0200 Subject: [PATCH] runtime: simplify openbsd check in usesLibcall and mStackIsSystemAllocated The openbsd/mips64 runtime code was removed in CL 649659. For #61546 Change-Id: I03f16c3396baddb0ee9aa751dd6f699a835e7586 Reviewed-on: https://go-review.googlesource.com/c/go/+/700976 Auto-Submit: Tobias Klauser Reviewed-by: Michael Pratt Reviewed-by: Joel Sing Reviewed-by: Keith Randall Reviewed-by: Keith Randall LUCI-TryBot-Result: Go LUCI --- src/runtime/proc.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/runtime/proc.go b/src/runtime/proc.go index 2584eb4cac..51e2c42605 100644 --- a/src/runtime/proc.go +++ b/src/runtime/proc.go @@ -1816,10 +1816,8 @@ func startTheWorldWithSema(now int64, w worldStop) int64 { // via libcall. func usesLibcall() bool { switch GOOS { - case "aix", "darwin", "illumos", "ios", "solaris", "windows": + case "aix", "darwin", "illumos", "ios", "openbsd", "solaris", "windows": return true - case "openbsd": - return GOARCH != "mips64" } return false } @@ -1828,10 +1826,8 @@ func usesLibcall() bool { // system-allocated stack. func mStackIsSystemAllocated() bool { switch GOOS { - case "aix", "darwin", "plan9", "illumos", "ios", "solaris", "windows": + case "aix", "darwin", "plan9", "illumos", "ios", "openbsd", "solaris", "windows": return true - case "openbsd": - return GOARCH != "mips64" } return false } -- 2.52.0