mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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>
This commit is contained in:
parent
ddef2d27fe
commit
b2a950bb73
66 changed files with 530 additions and 524 deletions
|
|
@ -14,7 +14,7 @@ func lfstackpush(head *uint64, node *lfnode) {
|
|||
new := lfstackPack(node, node.pushcnt)
|
||||
if node1, _ := lfstackUnpack(new); node1 != node {
|
||||
println("runtime: lfstackpush invalid packing: node=", node, " cnt=", hex(node.pushcnt), " packed=", hex(new), " -> node=", node1, "\n")
|
||||
gothrow("lfstackpush")
|
||||
throw("lfstackpush")
|
||||
}
|
||||
for {
|
||||
old := atomicload64(head)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue