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>
diff --git a/src/runtime/netpoll_solaris.go b/src/runtime/netpoll_solaris.go
index 40e8a1a..d8f050e 100644
--- a/src/runtime/netpoll_solaris.go
+++ b/src/runtime/netpoll_solaris.go
@@ -118,7 +118,7 @@
}
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 @@
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 @@
case 'w':
netpollupdate(pd, _POLLOUT, 0)
default:
- gothrow("netpollarm: bad mode")
+ throw("netpollarm: bad mode")
}
unlock(&pd.lock)
}