aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/os_windows.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2019-05-08 18:28:21 -0400
committerRuss Cox <rsc@golang.org>2019-05-09 21:13:39 +0000
commit13723d44a0eea725215274070b53a023d52582c9 (patch)
tree3485fe71d6ffa5e072f82d66158629b3a152d3b6 /src/runtime/os_windows.go
parent924c161de4ad263142478f33113e53690b8d32c0 (diff)
downloadgo-13723d44a0eea725215274070b53a023d52582c9.tar.gz
go-13723d44a0eea725215274070b53a023d52582c9.zip
runtime, crypto/x509: fix vet complaints for all windows
Working toward making the tree vet-safe instead of having so many exceptions in cmd/vet/all/whitelist. This CL makes "go vet -unsafeptr=false runtime" happy for windows/*, while keeping "GO_BUILDER_NAME=misc-vetall go tool dist test" happy too. For #31916. Change-Id: If37ab2b3f6fca4696b8a6afb2ef11ba6c4fb42e0 Reviewed-on: https://go-review.googlesource.com/c/go/+/176106 Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/runtime/os_windows.go')
-rw-r--r--src/runtime/os_windows.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/runtime/os_windows.go b/src/runtime/os_windows.go
index d3e84fe3dc..4d051a246a 100644
--- a/src/runtime/os_windows.go
+++ b/src/runtime/os_windows.go
@@ -133,9 +133,9 @@ var (
// Function to be called by windows CreateThread
// to start new os thread.
-func tstart_stdcall(newm *m) uint32
+func tstart_stdcall(newm *m)
-func ctrlhandler(_type uint32) uint32
+func ctrlhandler(_type uint32)
type mOS struct {
waitsema uintptr // semaphore for parking on locks
@@ -907,6 +907,9 @@ func ctrlhandler1(_type uint32) uint32 {
// in sys_windows_386.s and sys_windows_amd64.s
func profileloop()
+// called from zcallback_windows_*.s to sys_windows_*.s
+func callbackasm1()
+
var profiletimer uintptr
func profilem(mp *m, thread uintptr) {