From 02df9bbdbdb0a46b86b34d0cf236b599311c0ecb Mon Sep 17 00:00:00 2001 From: Michael Pratt Date: Thu, 21 Nov 2024 09:51:44 -0500 Subject: [PATCH] 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 Reviewed-by: Keith Randall Auto-Submit: Michael Pratt LUCI-TryBot-Result: Go LUCI --- src/reflect/map_swiss.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/reflect/map_swiss.go b/src/reflect/map_swiss.go index a278f81e815aa..7098e21291291 100644 --- a/src/reflect/map_swiss.go +++ b/src/reflect/map_swiss.go @@ -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