]> Cypherpunks repositories - gostls13.git/commit
runtime: panic on uncomparable map key, even if map is empty
authorKeith Randall <khr@google.com>
Fri, 28 Dec 2018 22:34:48 +0000 (14:34 -0800)
committerKeith Randall <khr@golang.org>
Sat, 29 Dec 2018 01:00:54 +0000 (01:00 +0000)
commited15e82413c7b16e21a493f5a647f68b46e965ee
tree34dd85b90385fef2ec09b6082b372b560c3b7e4a
parent14bdcc76fd9aa3edda64ef07a526fbeeed8b4326
runtime: panic on uncomparable map key, even if map is empty

Reorg map flags a bit so we don't need any extra space for the extra flag.

Fixes #23734

Change-Id: I436812156240ae90de53d0943fe1aabf3ea37417
Reviewed-on: https://go-review.googlesource.com/c/155918
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/compile/internal/gc/reflect.go
src/reflect/type.go
src/runtime/map.go
src/runtime/type.go
test/fixedbugs/issue23734.go [new file with mode: 0644]