mirror of
https://github.com/golang/go
synced 2024-11-26 15:56:57 -07:00
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>
This commit is contained in:
parent
6daf022e0f
commit
02df9bbdbd
@ -71,6 +71,7 @@ func MapOf(key, elem Type) Type {
|
|||||||
mt.Hasher = func(p unsafe.Pointer, seed uintptr) uintptr {
|
mt.Hasher = func(p unsafe.Pointer, seed uintptr) uintptr {
|
||||||
return typehash(ktyp, p, seed)
|
return typehash(ktyp, p, seed)
|
||||||
}
|
}
|
||||||
|
mt.GroupSize = mt.Group.Size()
|
||||||
mt.SlotSize = slot.Size()
|
mt.SlotSize = slot.Size()
|
||||||
mt.ElemOff = slot.Field(1).Offset
|
mt.ElemOff = slot.Field(1).Offset
|
||||||
mt.Flags = 0
|
mt.Flags = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user