ports/lang/go/patches/patch-src_runtime_proc_go

30 lines
905 B
Text

Index: src/runtime/proc.go
--- src/runtime/proc.go.orig
+++ src/runtime/proc.go
@@ -1492,10 +1492,8 @@ func startTheWorldWithSema() 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 == "386" || GOARCH == "amd64" || GOARCH == "arm" || GOARCH == "arm64"
}
return false
}
@@ -1504,13 +1502,8 @@ func usesLibcall() bool {
// system-allocated stack.
func mStackIsSystemAllocated() bool {
switch GOOS {
- case "aix", "darwin", "plan9", "illumos", "ios", "solaris", "windows":
+ case "aix", "darwin", "illumos", "ios", "openbsd", "plan9", "solaris", "windows":
return true
- case "openbsd":
- switch GOARCH {
- case "386", "amd64", "arm", "arm64":
- return true
- }
}
return false
}