1
0
mirror of https://github.com/golang/go synced 2024-11-22 18:44:54 -07:00

reflect: set swissmap GroupSize

This was missed in CL 627716.

For #54766.

Change-Id: Ib987efa8abe6e89367e2e1b71a33b64ac6b01b1f
Reviewed-on: https://go-review.googlesource.com/c/go/+/630279
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Auto-Submit: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
Michael Pratt 2024-11-21 09:51:44 -05:00 committed by Gopher Robot
parent 6daf022e0f
commit 02df9bbdbd

View File

@ -71,6 +71,7 @@ func MapOf(key, elem Type) Type {
mt.Hasher = func(p unsafe.Pointer, seed uintptr) uintptr {
return typehash(ktyp, p, seed)
}
mt.GroupSize = mt.Group.Size()
mt.SlotSize = slot.Size()
mt.ElemOff = slot.Field(1).Offset
mt.Flags = 0