aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/sema.go
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2014-12-27 20:58:00 -0800
committerKeith Randall <khr@golang.org>2014-12-28 06:16:16 +0000
commitb2a950bb7343a46ff3edd8502fe2f02fc051a308 (patch)
tree97511001e7aa590d22b1b0d8c962467319180681 /src/runtime/sema.go
parentddef2d27fec52c271ee72911e60b07f5f62cf3cb (diff)
downloadgo-b2a950bb7343a46ff3edd8502fe2f02fc051a308.tar.gz
go-b2a950bb7343a46ff3edd8502fe2f02fc051a308.zip
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/sema.go')
-rw-r--r--src/runtime/sema.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/sema.go b/src/runtime/sema.go
index 625445c912..35a1264762 100644
--- a/src/runtime/sema.go
+++ b/src/runtime/sema.go
@@ -62,7 +62,7 @@ func net_runtime_Semrelease(addr *uint32) {
func semacquire(addr *uint32, profile bool) {
gp := getg()
if gp != gp.m.curg {
- gothrow("semacquire not on the G stack")
+ throw("semacquire not on the G stack")
}
// Easy case.
@@ -284,6 +284,6 @@ func syncsemrelease(s *syncSema, n uint32) {
func syncsemcheck(sz uintptr) {
if sz != unsafe.Sizeof(syncSema{}) {
print("runtime: bad syncSema size - sync=", sz, " runtime=", unsafe.Sizeof(syncSema{}), "\n")
- gothrow("bad syncSema size")
+ throw("bad syncSema size")
}
}