1
0
mirror of https://github.com/golang/go synced 2024-10-04 09:31:22 -06:00
go/src/reflect
Keith Randall 00c638d243 runtime: on map update, don't overwrite key if we don't need to.
Keep track of which types of keys need an update and which don't.

Strings need an update because the new key might pin a smaller backing store.
Floats need an update because it might be +0/-0.
Interfaces need an update because they may contain strings or floats.

Fixes #11088

Change-Id: I9ade53c1dfb3c1a2870d68d07201bc8128e9f217
Reviewed-on: https://go-review.googlesource.com/10843
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-09-09 21:06:49 +00:00
..
all_test.go cmd/compile, runtime: fix placement of map bucket overflow pointer on nacl 2015-07-31 18:49:32 +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_ppc64x.s all: use RET instead of RETURN on ppc64 2015-06-06 00:07:23 +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 cmd/compile, runtime: fix placement of map bucket overflow pointer on nacl 2015-07-31 18:49:32 +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 runtime: on map update, don't overwrite key if we don't need to. 2015-09-09 21:06:49 +00:00
value.go reflect: fix doc string 2015-08-04 21:10:58 +00:00