Skip to content

Commit

Permalink
runtime: fix signature for linked functions
Browse files Browse the repository at this point in the history
These functions are linked using go:linkname, but do not match the
original declarations. This change brings these in sync.

Change-Id: I16651304c3dba2f9897c2c42e30555d2f7805c2a
Reviewed-on: https://go-review.googlesource.com/c/go/+/466615
Reviewed-by: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Michael Pratt <mpratt@google.com>
  • Loading branch information
amscanne authored and gopherbot committed Feb 9, 2023
1 parent 910f041 commit 8fb9565
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/internal/poll/fd_poll_runtime.go
Expand Up @@ -23,7 +23,7 @@ func runtime_pollServerInit()
func runtime_pollOpen(fd uintptr) (uintptr, int)
func runtime_pollClose(ctx uintptr)
func runtime_pollWait(ctx uintptr, mode int) int
func runtime_pollWaitCanceled(ctx uintptr, mode int) int
func runtime_pollWaitCanceled(ctx uintptr, mode int)
func runtime_pollReset(ctx uintptr, mode int) int
func runtime_pollSetDeadline(ctx uintptr, d int64, mode int)
func runtime_pollUnblock(ctx uintptr)
Expand Down
2 changes: 1 addition & 1 deletion src/sync/atomic/value.go
Expand Up @@ -190,5 +190,5 @@ func (v *Value) CompareAndSwap(old, new any) (swapped bool) {
}

// Disable/enable preemption, implemented in runtime.
func runtime_procPin()
func runtime_procPin() int
func runtime_procUnpin()

0 comments on commit 8fb9565

Please sign in to comment.