diff options
| author | Keith Randall <khr@golang.org> | 2014-08-28 23:26:50 -0700 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2014-08-28 23:26:50 -0700 |
| commit | ef64d9ffcc237fde9bcaed1fd00c5036c4f489de (patch) | |
| tree | 0f84c6b2d6d9ac23545f4d8bc2c086bc82a7a87d /src/pkg/runtime/string.c | |
| parent | 6a76bca33ffc83254edb9878679f11f4ba8e1b37 (diff) | |
| download | go-ef64d9ffcc237fde9bcaed1fd00c5036c4f489de.tar.xz | |
runtime: don't allocate a new string in printf
LGTM=dave
R=rsc, dave
CC=golang-codereviews
https://golang.org/cl/139890043
Diffstat (limited to 'src/pkg/runtime/string.c')
| -rw-r--r-- | src/pkg/runtime/string.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkg/runtime/string.c b/src/pkg/runtime/string.c index 60a0545a9a..5421b53196 100644 --- a/src/pkg/runtime/string.c +++ b/src/pkg/runtime/string.c @@ -90,6 +90,7 @@ runtime·gobytes(byte *p, intgo n) return sl; } +#pragma textflag NOSPLIT String runtime·gostringnocopy(byte *str) { |
