Skip to content

Commit

Permalink
reflect: set swissmap GroupSize
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
prattmic authored and gopherbot committed Nov 21, 2024
1 parent 6daf022 commit 02df9bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/reflect/map_swiss.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 02df9bb

Please sign in to comment.