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/mem_linux.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/runtime/mem_linux.go') diff --git a/src/runtime/mem_linux.go b/src/runtime/mem_linux.go index 0cb4b78f6b..aa99b762bf 100644 --- a/src/runtime/mem_linux.go +++ b/src/runtime/mem_linux.go @@ -116,20 +116,20 @@ func sysMap(v unsafe.Pointer, n uintptr, reserved bool, stat *uint64) { if !reserved { p := mmap_fixed(v, n, _PROT_READ|_PROT_WRITE, _MAP_ANON|_MAP_PRIVATE, -1, 0) if uintptr(p) == _ENOMEM { - gothrow("runtime: out of memory") + throw("runtime: out of memory") } if p != v { print("runtime: address space conflict: map(", v, ") = ", p, "\n") - gothrow("runtime: address space conflict") + throw("runtime: address space conflict") } return } p := mmap(v, n, _PROT_READ|_PROT_WRITE, _MAP_ANON|_MAP_FIXED|_MAP_PRIVATE, -1, 0) if uintptr(p) == _ENOMEM { - gothrow("runtime: out of memory") + throw("runtime: out of memory") } if p != v { - gothrow("runtime: cannot map pages in arena address space") + throw("runtime: cannot map pages in arena address space") } } -- cgit v1.3