aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/proc.go
diff options
context:
space:
mode:
authorJoel Sing <joel@sing.id.au>2020-11-15 23:28:57 +1100
committerJoel Sing <joel@sing.id.au>2021-01-22 18:58:08 +0000
commitdab3e5affefb7e0b157ad27fe4797c4c6f3c4ea6 (patch)
treec618630c55c6e0ced4b754e0b86045890824bef9 /src/runtime/proc.go
parenta1b53d85dad7648d545ee5e0d7e768f300bfcd84 (diff)
downloadgo-dab3e5affefb7e0b157ad27fe4797c4c6f3c4ea6.tar.xz
runtime: switch runtime to libc for openbsd/amd64
Use libc rather than performing direct system calls for the runtime on openbsd/amd64. Updates #36435 Change-Id: Ib708009c3743f56a3fd6cb3bc731451e4a398849 Reviewed-on: https://go-review.googlesource.com/c/go/+/270379 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, 2 insertions, 0 deletions
diff --git a/src/runtime/proc.go b/src/runtime/proc.go
index 30033712aa..aa44c625c5 100644
--- a/src/runtime/proc.go
+++ b/src/runtime/proc.go
@@ -1212,6 +1212,8 @@ func usesLibcall() bool {
switch GOOS {
case "aix", "darwin", "illumos", "ios", "solaris", "windows":
return true
+ case "openbsd":
+ return GOARCH == "amd64"
}
return false
}