mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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 <tobias.klauser@gmail.com> Reviewed-by: Michael Pratt <mpratt@google.com> Reviewed-by: Joel Sing <joel@sing.id.au> Reviewed-by: Keith Randall <khr@google.com> Reviewed-by: Keith Randall <khr@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
parent
bb48272e24
commit
87e72769fa
1 changed files with 2 additions and 6 deletions
|
|
@ -1816,10 +1816,8 @@ func startTheWorldWithSema(now int64, w worldStop) int64 {
|
||||||
// via libcall.
|
// via libcall.
|
||||||
func usesLibcall() bool {
|
func usesLibcall() bool {
|
||||||
switch GOOS {
|
switch GOOS {
|
||||||
case "aix", "darwin", "illumos", "ios", "solaris", "windows":
|
case "aix", "darwin", "illumos", "ios", "openbsd", "solaris", "windows":
|
||||||
return true
|
return true
|
||||||
case "openbsd":
|
|
||||||
return GOARCH != "mips64"
|
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
@ -1828,10 +1826,8 @@ func usesLibcall() bool {
|
||||||
// system-allocated stack.
|
// system-allocated stack.
|
||||||
func mStackIsSystemAllocated() bool {
|
func mStackIsSystemAllocated() bool {
|
||||||
switch GOOS {
|
switch GOOS {
|
||||||
case "aix", "darwin", "plan9", "illumos", "ios", "solaris", "windows":
|
case "aix", "darwin", "plan9", "illumos", "ios", "openbsd", "solaris", "windows":
|
||||||
return true
|
return true
|
||||||
case "openbsd":
|
|
||||||
return GOARCH != "mips64"
|
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue