diff options
| author | Mikio Hara <mikioh.mikioh@gmail.com> | 2014-09-04 16:23:37 +0900 |
|---|---|---|
| committer | Mikio Hara <mikioh.mikioh@gmail.com> | 2014-09-04 16:23:37 +0900 |
| commit | d3a2021f71d5a4d31bba88ca634823b14904e239 (patch) | |
| tree | 28d7b0decd307711670844458681e36364d83ac9 /src | |
| parent | b1d01529975d2d87921c88891f85f3faa65e8cea (diff) | |
| download | go-d3a2021f71d5a4d31bba88ca634823b14904e239.tar.xz | |
runtime: fix typos
LGTM=dvyukov
R=dvyukov
CC=golang-codereviews
https://golang.org/cl/141000043
Diffstat (limited to 'src')
| -rw-r--r-- | src/pkg/runtime/netpoll.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pkg/runtime/netpoll.go b/src/pkg/runtime/netpoll.go index 5c410fc678..55f90f8c1e 100644 --- a/src/pkg/runtime/netpoll.go +++ b/src/pkg/runtime/netpoll.go @@ -14,7 +14,7 @@ import "unsafe" // func netpollopen(fd uintptr, pd *pollDesc) int32 // to arm edge-triggered notifications // and associate fd with pd. // An implementation must call the following function to denote that the pd is ready. -// func netpollready(rg, wg **gp, pd *pollDesc, mode int32) +// func netpollready(gpp **g, pd *pollDesc, mode int32) // pollDesc contains 2 binary semaphores, rg and wg, to park reader and writer // goroutines respectively. The semaphore can be in the following states: @@ -99,7 +99,7 @@ func netpollOpen(fd uintptr) (*pollDesc, int) { func netpollClose(pd *pollDesc) { if !pd.closing { - gothrow("runtime_pollClose: close w/o unblock") + gothrow("netpollClose: close w/o unblock") } if pd.wg != 0 && pd.wg != pdReady { gothrow("netpollClose: blocked write on closing descriptor") @@ -388,7 +388,7 @@ func netpolldeadlineimpl(pd *pollDesc, seq uintptr, read, write bool) { var rg *g if read { if pd.rd <= 0 || pd.rt.f == nil { - gothrow("netpollDeadlineImpl: inconsistent read deadline") + gothrow("netpolldeadlineimpl: inconsistent read deadline") } pd.rd = -1 atomicstorep(unsafe.Pointer(&pd.rt.f), nil) // full memory barrier between store to rd and load of rg in netpollunblock |
