]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: allocate stack buffer for ORUNESTR
authorDmitry Vyukov <dvyukov@google.com>
Wed, 28 Jan 2015 05:42:20 +0000 (08:42 +0300)
committerDmitry Vyukov <dvyukov@google.com>
Wed, 28 Jan 2015 20:37:20 +0000 (20:37 +0000)
commit4ce4d8b2c4ffb0378a246b26815e9e27d077670a
tree47a9ab04b5123b069d3f868be8590b14314cb18c
parente6fac08146df323eb95f46508bef937cdfb802fd
cmd/gc: allocate stack buffer for ORUNESTR

If result of string(i) does not escape,
allocate a [4]byte temp on stack for it.

Change-Id: If31ce9447982929d5b3b963fd0830efae4247c37
Reviewed-on: https://go-review.googlesource.com/3411
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/gc/builtin.c
src/cmd/gc/esc.c
src/cmd/gc/runtime.go
src/cmd/gc/walk.c
src/runtime/string.go
src/runtime/string_test.go
test/escape2.go
test/escape2n.go