From b2a950bb7343a46ff3edd8502fe2f02fc051a308 Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Sat, 27 Dec 2014 20:58:00 -0800 Subject: 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 Reviewed-by: Dave Cheney --- src/runtime/string.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/runtime/string.go') diff --git a/src/runtime/string.go b/src/runtime/string.go index e01bc3b846..78c4cb3e5e 100644 --- a/src/runtime/string.go +++ b/src/runtime/string.go @@ -18,7 +18,7 @@ func concatstrings(a []string) string { continue } if l+n < l { - gothrow("string concatenation too long") + throw("string concatenation too long") } l += n count++ @@ -222,7 +222,7 @@ func rawbyteslice(size int) (b []byte) { // rawruneslice allocates a new rune slice. The rune slice is not zeroed. func rawruneslice(size int) (b []rune) { if uintptr(size) > _MaxMem/4 { - gothrow("out of memory") + throw("out of memory") } mem := goroundupsize(uintptr(size) * 4) p := mallocgc(mem, nil, flagNoScan|flagNoZero) -- cgit v1.3