Skip to content

Commit 02df9bb

Browse files
prattmicgopherbot
authored andcommitted
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 <[email protected]> Reviewed-by: Keith Randall <[email protected]> Auto-Submit: Michael Pratt <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent 6daf022 commit 02df9bb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/reflect/map_swiss.go

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ func MapOf(key, elem Type) Type {
7171
mt.Hasher = func(p unsafe.Pointer, seed uintptr) uintptr {
7272
return typehash(ktyp, p, seed)
7373
}
74+
mt.GroupSize = mt.Group.Size()
7475
mt.SlotSize = slot.Size()
7576
mt.ElemOff = slot.Field(1).Offset
7677
mt.Flags = 0

0 commit comments

Comments
 (0)