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/os1_darwin.go b/src/runtime/os1_darwin.go
index 984b881..3a5ed7c 100644
--- a/src/runtime/os1_darwin.go
+++ b/src/runtime/os1_darwin.go
@@ -64,9 +64,9 @@
if !iscgo {
if bsdthread_register() != 0 {
if gogetenv("DYLD_INSERT_LIBRARIES") != "" {
- gothrow("runtime: bsdthread_register error (unset DYLD_INSERT_LIBRARIES)")
+ throw("runtime: bsdthread_register error (unset DYLD_INSERT_LIBRARIES)")
}
- gothrow("runtime: bsdthread_register error")
+ throw("runtime: bsdthread_register error")
}
}
}
@@ -84,7 +84,7 @@
if errno < 0 {
print("runtime: failed to create new OS thread (have ", mcount(), " already; errno=", -errno, ")\n")
- gothrow("runtime.newosproc")
+ throw("runtime.newosproc")
}
}
@@ -114,7 +114,7 @@
func macherror(r int32, fn string) {
print("mach error ", fn, ": ", r, "\n")
- gothrow("mach error")
+ throw("mach error")
}
const _DebugMach = false
@@ -395,7 +395,7 @@
}
func setsigstack(i int32) {
- gothrow("setsigstack")
+ throw("setsigstack")
}
func getsig(i int32) uintptr {