Skip to content

Commit b518c29

Browse files
committed
windows: use //go:uintptrescapes comment
CL 24551 introduced //go:uintptrescapes comment to make syscall.Proc.Call and syscall.LazyProc.Call parameters escape. Use new comment in this package too. Updates golang/go#16035. Change-Id: I57ec3b4778195ca4a1ce9a8eec331f0f69285926 Reviewed-on: https://go-review.googlesource.com/24870 Reviewed-by: Ian Lance Taylor <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent a408501 commit b518c29

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

windows/dll_windows.go

+4
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ func (p *Proc) Addr() uintptr {
114114
return p.addr
115115
}
116116

117+
//go:uintptrescapes
118+
117119
// Call executes procedure p with arguments a. It will panic, if more then 15 arguments
118120
// are supplied.
119121
//
@@ -293,6 +295,8 @@ func (p *LazyProc) Addr() uintptr {
293295
return p.proc.Addr()
294296
}
295297

298+
//go:uintptrescapes
299+
296300
// Call executes procedure p with arguments a. It will panic, if more then 15 arguments
297301
// are supplied.
298302
//

0 commit comments

Comments
 (0)