commit | ef64d9ffcc237fde9bcaed1fd00c5036c4f489de | [log] [tgz] |
---|---|---|
author | Keith Randall <khr@golang.org> | Thu Aug 28 23:26:50 2014 -0700 |
committer | Keith Randall <khr@golang.org> | Thu Aug 28 23:26:50 2014 -0700 |
tree | 0f84c6b2d6d9ac23545f4d8bc2c086bc82a7a87d | |
parent | 6a76bca33ffc83254edb9878679f11f4ba8e1b37 [diff] [blame] |
runtime: don't allocate a new string in printf LGTM=dave R=rsc, dave CC=golang-codereviews https://golang.org/cl/139890043
diff --git a/src/pkg/runtime/stubs.go b/src/pkg/runtime/stubs.go index 26126fc..2014dfb 100644 --- a/src/pkg/runtime/stubs.go +++ b/src/pkg/runtime/stubs.go
@@ -203,6 +203,7 @@ func lock(lk *mutex) func unlock(lk *mutex) func purgecachedstats(c *mcache) +func gostringnocopy(b *byte) string //go:noescape func write(fd uintptr, p unsafe.Pointer, n int32) int32