aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/vlrt.go
diff options
context:
space:
mode:
authorKeith Randall <khr@google.com>2018-06-13 14:39:36 -0700
committerKeith Randall <khr@golang.org>2018-06-16 00:58:37 +0000
commit5b5473c6bf0b91fef76e21493c70754144ff0214 (patch)
treee7920ae9c7030d59846d259caa36dd15111cb906 /src/runtime/vlrt.go
parentc34381a6581c59b8e80d2f2ef3ad9ec223b752a5 (diff)
downloadgo-5b5473c6bf0b91fef76e21493c70754144ff0214.tar.gz
go-5b5473c6bf0b91fef76e21493c70754144ff0214.zip
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>
Diffstat (limited to 'src/runtime/vlrt.go')
-rw-r--r--src/runtime/vlrt.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/vlrt.go b/src/runtime/vlrt.go
index 6d516b3afd..f790d3b17f 100644
--- a/src/runtime/vlrt.go
+++ b/src/runtime/vlrt.go
@@ -163,6 +163,7 @@ func int64div(n, d int64) int64 {
return q
}
+//go:nosplit
func int64mod(n, d int64) int64 {
// Check for 32 bit operands
if int64(int32(n)) == n && int64(int32(d)) == d {