aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/proc.go
diff options
context:
space:
mode:
authorJoel Sing <joel@sing.id.au>2021-01-28 23:43:33 +1100
committerJoel Sing <joel@sing.id.au>2021-04-30 19:59:10 +0000
commitfaff49aae6e90f7c6a8333f7974a6ca368c01228 (patch)
treeeab9000d2c57ad451df79d69f2cc45d113935482 /src/runtime/proc.go
parent0bbfc5c31eb4cb77f12e10c73d5462377e66b06c (diff)
downloadgo-faff49aae6e90f7c6a8333f7974a6ca368c01228.tar.gz
go-faff49aae6e90f7c6a8333f7974a6ca368c01228.zip
runtime: switch runtime to libc for openbsd/386
Use libc rather than performing direct system calls for the runtime on openbsd/386. Updates #36435 Change-Id: I0cd65368bc824c81f5f98ea24e4f82db5468b170 Reviewed-on: https://go-review.googlesource.com/c/go/+/287653 Trust: Joel Sing <joel@sing.id.au> Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/runtime/proc.go')
-rw-r--r--src/runtime/proc.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/proc.go b/src/runtime/proc.go
index 497dbd5443..480afd07dd 100644
--- a/src/runtime/proc.go
+++ b/src/runtime/proc.go
@@ -1303,7 +1303,7 @@ func usesLibcall() bool {
case "aix", "darwin", "illumos", "ios", "solaris", "windows":
return true
case "openbsd":
- return GOARCH == "amd64" || GOARCH == "arm64"
+ return GOARCH == "386" || GOARCH == "amd64" || GOARCH == "arm64"
}
return false
}