diff options
| author | Keith Randall <khr@golang.org> | 2014-12-27 20:58:00 -0800 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2014-12-28 06:16:16 +0000 |
| commit | b2a950bb7343a46ff3edd8502fe2f02fc051a308 (patch) | |
| tree | 97511001e7aa590d22b1b0d8c962467319180681 /src/runtime/netpoll_solaris.go | |
| parent | ddef2d27fec52c271ee72911e60b07f5f62cf3cb (diff) | |
| download | go-git-b2a950bb7343a46ff3edd8502fe2f02fc051a308.tar.gz | |
runtime: rename gothrow to throw
Rename "gothrow" to "throw" now that the C version of "throw"
is no longer needed.
This change is purely mechanical except in panic.go where the
old version of "throw" has been deleted.
sed -i "" 's/[[:<:]]gothrow[[:>:]]/throw/g' runtime/*.go
Change-Id: Icf0752299c35958b92870a97111c67bcd9159dc3
Reviewed-on: https://go-review.googlesource.com/2150
Reviewed-by: Minux Ma <minux@golang.org>
Reviewed-by: Dave Cheney <dave@cheney.net>
Diffstat (limited to 'src/runtime/netpoll_solaris.go')
| -rw-r--r-- | src/runtime/netpoll_solaris.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/runtime/netpoll_solaris.go b/src/runtime/netpoll_solaris.go index 40e8a1a651..d8f050e1e2 100644 --- a/src/runtime/netpoll_solaris.go +++ b/src/runtime/netpoll_solaris.go @@ -118,7 +118,7 @@ func netpollinit() { } print("netpollinit: failed to create port (", errno(), ")\n") - gothrow("netpollinit: failed to create port") + throw("netpollinit: failed to create port") } func netpollopen(fd uintptr, pd *pollDesc) int32 { @@ -155,7 +155,7 @@ func netpollupdate(pd *pollDesc, set, clear uint32) { if events != 0 && port_associate(portfd, _PORT_SOURCE_FD, pd.fd, events, uintptr(unsafe.Pointer(pd))) != 0 { print("netpollupdate: failed to associate (", errno(), ")\n") - gothrow("netpollupdate: failed to associate") + throw("netpollupdate: failed to associate") } pd.user = events } @@ -169,7 +169,7 @@ func netpollarm(pd *pollDesc, mode int) { case 'w': netpollupdate(pd, _POLLOUT, 0) default: - gothrow("netpollarm: bad mode") + throw("netpollarm: bad mode") } unlock(&pd.lock) } |
