From ef64d9ffcc237fde9bcaed1fd00c5036c4f489de Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Thu, 28 Aug 2014 23:26:50 -0700 Subject: runtime: don't allocate a new string in printf LGTM=dave R=rsc, dave CC=golang-codereviews https://golang.org/cl/139890043 --- src/pkg/runtime/string.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/pkg/runtime/string.c') 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) { -- cgit v1.3