]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/link,runtime: switch openbsd/amd64 to pthreads
authorJoel Sing <joel@sing.id.au>
Sun, 23 Aug 2020 17:13:54 +0000 (03:13 +1000)
committerJoel Sing <joel@sing.id.au>
Tue, 19 Jan 2021 12:49:13 +0000 (12:49 +0000)
commitd047c91a6c0f22af00d1c1e770a9d85201392656
treedcd9610ea13b12d5490960e2023a8b237de9d27a
parent61debffd977889cd3f7f63b4f71d5a8ef1fc604e
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>
14 files changed:
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/main.go
src/runtime/asm_amd64.s
src/runtime/defs_openbsd.go
src/runtime/defs_openbsd_amd64.go
src/runtime/os_openbsd.go
src/runtime/os_openbsd_libc.go [new file with mode: 0644]
src/runtime/os_openbsd_syscall.go [new file with mode: 0644]
src/runtime/proc.go
src/runtime/sys_darwin.go
src/runtime/sys_libc.go [new file with mode: 0644]
src/runtime/sys_openbsd.go [new file with mode: 0644]
src/runtime/sys_openbsd_amd64.s