diff options
author | David Crawshaw <crawshaw@golang.org> | 2016-04-07 16:29:16 -0400 |
---|---|---|
committer | David Crawshaw <crawshaw@golang.org> | 2016-04-22 10:08:05 +0000 |
commit | 1492e7db059ea7903110b0725d5ced3134558e73 (patch) | |
tree | 55b92fbd4305828b28b431a2d05f0291ca932af1 /src/runtime/mprof.go | |
parent | bb52ceafea60dc4688b6c6b71f241752ce597db8 (diff) | |
download | go-1492e7db059ea7903110b0725d5ced3134558e73.tar.gz go-1492e7db059ea7903110b0725d5ced3134558e73.zip |
cmd/compile, etc: use nameOff for rtype string
linux/amd64:
cmd/go: -8KB (basically nothing)
linux/amd64 PIE:
cmd/go: -191KB (1.6%)
jujud: -1.5MB (1.9%)
Updates #6853
Fixes #15064
Change-Id: I0adbb95685e28be92e8548741df0e11daa0a9b5f
Reviewed-on: https://go-review.googlesource.com/21777
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime/mprof.go')
-rw-r--r-- | src/runtime/mprof.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/mprof.go b/src/runtime/mprof.go index f3b9b4bc78..c3e4e2cb87 100644 --- a/src/runtime/mprof.go +++ b/src/runtime/mprof.go @@ -624,7 +624,7 @@ func tracealloc(p unsafe.Pointer, size uintptr, typ *_type) { if typ == nil { print("tracealloc(", p, ", ", hex(size), ")\n") } else { - print("tracealloc(", p, ", ", hex(size), ", ", typ._string, ")\n") + print("tracealloc(", p, ", ", hex(size), ", ", typ.string(), ")\n") } if gp.m.curg == nil || gp == gp.m.curg { goroutineheader(gp) |