diff options
author | David Crawshaw <crawshaw@golang.org> | 2016-02-16 22:23:14 -0500 |
---|---|---|
committer | David Crawshaw <crawshaw@golang.org> | 2016-02-24 17:12:15 +0000 |
commit | a8589312004157de09677e182c3c77399f2d628d (patch) | |
tree | 8555ee8731028b29311157de253b8e193f0eea18 /src/runtime/mfinal.go | |
parent | 8dd2ce2b980d341a4c88e4f3c95e4eca396b6a07 (diff) | |
download | go-a8589312004157de09677e182c3c77399f2d628d.tar.gz go-a8589312004157de09677e182c3c77399f2d628d.zip |
cmd/compile: embed type string header in rtype
Reduces binary size of cmd/go by 1%.
For #6853.
Change-Id: I6f2992a4dd3699db1b532ab08683e82741b9c2e4
Reviewed-on: https://go-review.googlesource.com/19692
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: David Crawshaw <crawshaw@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/runtime/mfinal.go')
-rw-r--r-- | src/runtime/mfinal.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/runtime/mfinal.go b/src/runtime/mfinal.go index 512edeffe8..778cbcb416 100644 --- a/src/runtime/mfinal.go +++ b/src/runtime/mfinal.go @@ -274,7 +274,7 @@ func SetFinalizer(obj interface{}, finalizer interface{}) { throw("runtime.SetFinalizer: first argument is nil") } if etyp.kind&kindMask != kindPtr { - throw("runtime.SetFinalizer: first argument is " + *etyp._string + ", not pointer") + throw("runtime.SetFinalizer: first argument is " + etyp._string + ", not pointer") } ot := (*ptrtype)(unsafe.Pointer(etyp)) if ot.elem == nil { @@ -328,11 +328,11 @@ func SetFinalizer(obj interface{}, finalizer interface{}) { } if ftyp.kind&kindMask != kindFunc { - throw("runtime.SetFinalizer: second argument is " + *ftyp._string + ", not a function") + throw("runtime.SetFinalizer: second argument is " + ftyp._string + ", not a function") } ft := (*functype)(unsafe.Pointer(ftyp)) if ft.dotdotdot || len(ft.in) != 1 { - throw("runtime.SetFinalizer: cannot pass " + *etyp._string + " to finalizer " + *ftyp._string) + throw("runtime.SetFinalizer: cannot pass " + etyp._string + " to finalizer " + ftyp._string) } fint := ft.in[0] switch { @@ -355,7 +355,7 @@ func SetFinalizer(obj interface{}, finalizer interface{}) { goto okarg } } - throw("runtime.SetFinalizer: cannot pass " + *etyp._string + " to finalizer " + *ftyp._string) + throw("runtime.SetFinalizer: cannot pass " + etyp._string + " to finalizer " + ftyp._string) okarg: // compute size needed for return parameters nret := uintptr(0) |