]> Cypherpunks repositories - gostls13.git/commit
reflect: add test of maps with keys larger than key size
authorMichael Pratt <mpratt@google.com>
Thu, 21 Nov 2024 18:56:57 +0000 (13:56 -0500)
committerGopher Robot <gobot@golang.org>
Thu, 21 Nov 2024 23:02:11 +0000 (23:02 +0000)
commit0dafae13605409231f410d329c86269b19814caa
tree84026f34a0b27db2b4b0d72e129bb1ac79c994a0
parentf0b01092429a449313c9f54434417337ed26b20b
reflect: add test of maps with keys larger than key size

This finds the bug fixed in CL 630279.

reflect mutates the SwissMapType of a map[unsafe.Pointer]unsafe.Pointer,
which happened to already have the correct GroupSize for all of the maps
used in the reflect tests.

For #54766.

Change-Id: If4428e1e799598e7512edceb3cefb2ad00cfa712
Reviewed-on: https://go-review.googlesource.com/c/go/+/630676
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
src/reflect/all_test.go