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 <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>
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

Lines changed: 1 addition & 0 deletions
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)