Skip to content

x/sys/windows: clarify safety of Proc.Call, LazyProc.Call #42680

Open
@bradfitz

Description

@bradfitz

https://godoc.org/golang.org/x/sys/windows#LazyProc.Call and https://godoc.org/golang.org/x/sys/windows#Proc.Call are syscall.SysCall wrappers but take a bunch of uintptrs.

I assume that those wrappers are not covered by the uintptr(unsafe.Pointer) conversion exception number (4) from https://golang.org/pkg/unsafe/#Pointer, correct?

Could we document that either way in x/sys/windows?

I assume that many callers will require runtime.KeepAlive?

/cc @ianlancetaylor @mdempsky @alexbrainman @josharian @crawshaw

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationIssues describing a change to documentation.NeedsFixThe path to resolution is known, but the work has not been done.OS-Windowscompiler/runtimeIssues related to the Go compiler and/or runtime.

    Type

    No type

    Projects

    Status

    Triage Backlog

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions