diff --git a/src/reflect/map_swiss.go b/src/reflect/map_swiss.go index a278f81e815..7098e212912 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