]> Cypherpunks repositories - gostls13.git/commit
runtime,syscall: implement and use syscalln on darwin
authorqmuntal <quimmuntal@gmail.com>
Tue, 26 Aug 2025 14:20:56 +0000 (16:20 +0200)
committerQuim Muntal <quimmuntal@gmail.com>
Tue, 21 Oct 2025 20:19:45 +0000 (13:19 -0700)
commit4a0115c886101717dfc6186a3296b69fc4415487
tree78c41c5901f4db8599ebe60c1040bdac2d0a4dfa
parent261c561f5abc7cc6a9db62558b788580c306e69a
runtime,syscall: implement and use syscalln on darwin

All darwin syscall implementations can be consolidated into a
single syscalln function, as already happens on Windows.

This reduces duplication and allows moving some logic from
runtime to syscall.

Updates #699135

Cq-Include-Trybots: luci.golang.try:gotip-darwin-arm64-longtest,gotip-darwin-amd64-longtest,x_sys-gotip-darwin-arm64-longtest,x_sys-gotip-darwin-amd64-longtest
Change-Id: If5de80442b1d4a1123258401a3ae21695e7c8f6b
Reviewed-on: https://go-review.googlesource.com/c/go/+/699177
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/internal/trace/trace_test.go
src/runtime/os_darwin.go
src/runtime/sys_darwin.go
src/runtime/sys_darwin_amd64.s
src/runtime/sys_darwin_arm64.s
src/syscall/syscall_darwin.go
src/syscall/syscall_darwin_amd64.go
src/syscall/syscall_darwin_arm64.go