Skip to content

Commit 87e7276

Browse files
tklausergopherbot
authored andcommitted
runtime: simplify openbsd check in usesLibcall and mStackIsSystemAllocated
The openbsd/mips64 runtime code was removed in CL 649659. For golang#61546 Change-Id: I03f16c3396baddb0ee9aa751dd6f699a835e7586 Reviewed-on: https://go-review.googlesource.com/c/go/+/700976 Auto-Submit: Tobias Klauser <[email protected]> Reviewed-by: Michael Pratt <[email protected]> Reviewed-by: Joel Sing <[email protected]> Reviewed-by: Keith Randall <[email protected]> Reviewed-by: Keith Randall <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent bb48272 commit 87e7276

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/runtime/proc.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1816,10 +1816,8 @@ func startTheWorldWithSema(now int64, w worldStop) int64 {
18161816
// via libcall.
18171817
func usesLibcall() bool {
18181818
switch GOOS {
1819-
case "aix", "darwin", "illumos", "ios", "solaris", "windows":
1819+
case "aix", "darwin", "illumos", "ios", "openbsd", "solaris", "windows":
18201820
return true
1821-
case "openbsd":
1822-
return GOARCH != "mips64"
18231821
}
18241822
return false
18251823
}
@@ -1828,10 +1826,8 @@ func usesLibcall() bool {
18281826
// system-allocated stack.
18291827
func mStackIsSystemAllocated() bool {
18301828
switch GOOS {
1831-
case "aix", "darwin", "plan9", "illumos", "ios", "solaris", "windows":
1829+
case "aix", "darwin", "plan9", "illumos", "ios", "openbsd", "solaris", "windows":
18321830
return true
1833-
case "openbsd":
1834-
return GOARCH != "mips64"
18351831
}
18361832
return false
18371833
}

0 commit comments

Comments
 (0)