diff options
author | Joel Sing <joel@sing.id.au> | 2020-08-24 03:13:54 +1000 |
---|---|---|
committer | Joel Sing <joel@sing.id.au> | 2021-01-19 12:49:13 +0000 |
commit | d047c91a6c0f22af00d1c1e770a9d85201392656 (patch) | |
tree | dcd9610ea13b12d5490960e2023a8b237de9d27a /src/runtime/proc.go | |
parent | 61debffd977889cd3f7f63b4f71d5a8ef1fc604e (diff) | |
download | go-d047c91a6c0f22af00d1c1e770a9d85201392656.tar.gz go-d047c91a6c0f22af00d1c1e770a9d85201392656.zip |
cmd/link,runtime: switch openbsd/amd64 to pthreads
This switches openbsd/amd64 to thread creation via pthreads, rather than doing
direct system calls.
Update #36435
Change-Id: I1105d5c392aa3e4c445d99c8cb80b927712e3529
Reviewed-on: https://go-review.googlesource.com/c/go/+/250180
Trust: Joel Sing <joel@sing.id.au>
Run-TryBot: Joel Sing <joel@sing.id.au>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/runtime/proc.go')
-rw-r--r-- | src/runtime/proc.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/runtime/proc.go b/src/runtime/proc.go index 46aa3b04a5..26cf7c7335 100644 --- a/src/runtime/proc.go +++ b/src/runtime/proc.go @@ -1222,6 +1222,11 @@ func mStackIsSystemAllocated() bool { switch GOOS { case "aix", "darwin", "plan9", "illumos", "ios", "solaris", "windows": return true + case "openbsd": + switch GOARCH { + case "amd64": + return true + } } return false } |