• Brad Fitzpatrick's avatar
    syscall: use unsafe.Pointer in BSD kevent · ba8c92c1
    Brad Fitzpatrick authored
    Doesn't really matter for the most part, since the runtime-integrated
    network poller uses its own kevent implementation, but for people using
    the syscall directly, we should use an unsafe.Pointer for the precise GC
    to retain the pointer arguments.
    
    Also push down unsafe.Pointer a bit further in exec_linux.go, not
    that there are any GC preemption points in the middle and sys
    is still live anyway.
    
    R=golang-codereviews, dvyukov
    CC=golang-codereviews, iant
    https://golang.org/cl/55520043
    ba8c92c1
zsyscall_darwin_amd64.go 30 KB