1
0
mirror of https://github.com/golang/go synced 2024-10-06 00:31:23 -06:00
go/src/reflect
Keith Randall 8d31a86a1e reflect: mark mapassign as noescape
The lack of this annotation causes Value.SetMapIndex to allocate
when it doesn't need to.

Add comments about why it's safe to do so.

Add a test to make sure we stay allocation-free.

Change-Id: I00826e0d73e317a31bdeae5c7e46bf95b0c6ae6a
Reviewed-on: https://go-review.googlesource.com/17060
Reviewed-by: David Chase <drchase@google.com>
2015-11-19 21:35:58 +00:00
..
all_test.go reflect: mark mapassign as noescape 2015-11-19 21:35:58 +00:00
asm_386.s
asm_amd64.s
asm_amd64p32.s
asm_arm64.s runtime, reflect: use correctly aligned stack frame sizes on arm64 2015-07-29 21:35:35 +00:00
asm_arm.s
asm_mips64x.s reflect: added support for mips64{,le} 2015-11-12 04:50:18 +00:00
asm_ppc64x.s reflect, runtime, runtime/cgo: use ppc64 asm constant for fixed frame size 2015-10-18 23:15:26 +00:00
deepequal.go reflect: record unsafe.Pointer, not uintptr, during DeepEqual 2015-09-05 01:44:30 +00:00
example_test.go reflect: document reflect.TypeOf((*Foo)(nil)).Elem() idiom 2015-04-14 17:19:36 +00:00
export_test.go reflect: adjust access to unexported embedded structs 2015-10-26 10:14:38 +00:00
makefunc.go all: link to https instead of http 2015-07-11 14:36:33 +00:00
set_test.go
tostring_test.go
type.go reflect: Comment fix 2015-10-27 15:46:29 +00:00
value.go reflect: mark mapassign as noescape 2015-11-19 21:35:58 +00:00