]> Cypherpunks repositories - gostls13.git/commit
runtime: move semaphore ops from system calls to libc calls on Darwin
authorKeith Randall <khr@google.com>
Wed, 13 Jun 2018 21:39:36 +0000 (14:39 -0700)
committerKeith Randall <khr@golang.org>
Sat, 16 Jun 2018 00:58:37 +0000 (00:58 +0000)
commit5b5473c6bf0b91fef76e21493c70754144ff0214
treee7920ae9c7030d59846d259caa36dd15111cb906
parentc34381a6581c59b8e80d2f2ef3ad9ec223b752a5
runtime: move semaphore ops from system calls to libc calls on Darwin

This CL removes the last of the direct system calls in the runtime package.
This is the last CL for 1.11.

Use libcCall instead of asmcgocall in a few places I accidentally used
the wrong one.

For 1.12, we need to think about whether/how the syscall package
should be moved over to libc.

Update #17490

Change-Id: I4f0bd9cd6023f662f2e29588266fdfae5233898f
Reviewed-on: https://go-review.googlesource.com/118736
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/vet/all/whitelist/darwin_386.txt
src/runtime/defs_darwin.go
src/runtime/defs_darwin_386.go
src/runtime/defs_darwin_amd64.go
src/runtime/os_darwin.go
src/runtime/sys_darwin.go
src/runtime/sys_darwin_386.s
src/runtime/sys_darwin_amd64.s
src/runtime/vlrt.go