Change information
Commit message:
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
Files:
- M src/internal/trace/trace_test.go
- M src/runtime/os_darwin.go
- M src/runtime/sys_darwin.go
- M src/runtime/sys_darwin_amd64.s
- M src/runtime/sys_darwin_arm64.s
- M src/syscall/syscall_darwin.go
- M src/syscall/syscall_darwin_amd64.go
- M src/syscall/syscall_darwin_arm64.go
Change size: L
Delta: 8 files changed, 308 insertions(+), 385 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Code-Review: +2 by Michael Pratt, +1 by David Chase
TryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI