]> Cypherpunks repositories - gostls13.git/commit
internal/runtime/maps: use uintptr instead of uint32 for index in group
authorMichael Pratt <mpratt@google.com>
Mon, 14 Oct 2024 19:05:07 +0000 (15:05 -0400)
committerGopher Robot <gobot@golang.org>
Wed, 30 Oct 2024 15:22:32 +0000 (15:22 +0000)
commit0b652e3ef6413b343d0e7ee38a58f1cc15c933f6
tree51810fee9e78093975df9f30f560b80f53729cd2
parentd95b7980aa1ef94983983cd98e005947e83d562d
internal/runtime/maps: use uintptr instead of uint32 for index in group

This avoids some zero-extension ops on 64-bit machines.

Based on khr@'s CL 619479.

For #54766.

Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-longtest-swissmap
Change-Id: Ie9a56da26382dc9e515c613abc8cf6fec3767671
Reviewed-on: https://go-review.googlesource.com/c/go/+/620216
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
src/internal/runtime/maps/export_test.go
src/internal/runtime/maps/group.go
src/internal/runtime/maps/map.go
src/internal/runtime/maps/runtime_fast32_swiss.go
src/internal/runtime/maps/runtime_fast64_swiss.go
src/internal/runtime/maps/runtime_faststr_swiss.go
src/internal/runtime/maps/runtime_swiss.go
src/internal/runtime/maps/table.go
src/internal/runtime/maps/table_debug.go