diff options
author | Keith Randall <khr@golang.org> | 2014-12-27 20:58:00 -0800 |
---|---|---|
committer | Keith Randall <khr@golang.org> | 2014-12-28 06:16:16 +0000 |
commit | b2a950bb7343a46ff3edd8502fe2f02fc051a308 (patch) | |
tree | 97511001e7aa590d22b1b0d8c962467319180681 /src/runtime/msize.go | |
parent | ddef2d27fec52c271ee72911e60b07f5f62cf3cb (diff) | |
download | go-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/msize.go')
-rw-r--r-- | src/runtime/msize.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/runtime/msize.go b/src/runtime/msize.go index aa2b43e90d..a113b0d963 100644 --- a/src/runtime/msize.go +++ b/src/runtime/msize.go @@ -43,7 +43,7 @@ package runtime func sizeToClass(size int32) int32 { if size > _MaxSmallSize { - gothrow("SizeToClass - invalid size") + throw("SizeToClass - invalid size") } if size > 1024-8 { return int32(size_to_class128[(size-1024+127)>>7]) @@ -67,7 +67,7 @@ func initSizes() { } } if align&(align-1) != 0 { - gothrow("InitSizes - bug") + throw("InitSizes - bug") } // Make the allocnpages big enough that @@ -95,7 +95,7 @@ func initSizes() { } if sizeclass != _NumSizeClasses { print("sizeclass=", sizeclass, " NumSizeClasses=", _NumSizeClasses, "\n") - gothrow("InitSizes - bad NumSizeClasses") + throw("InitSizes - bad NumSizeClasses") } // Initialize the size_to_class tables. @@ -155,7 +155,7 @@ dump: } print("\n") } - gothrow("InitSizes failed") + throw("InitSizes failed") } // Returns size of the memory block that mallocgc will allocate if you ask for the size. |