]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: use real type size in map keys and values functions
authorIan Lance Taylor <iant@golang.org>
Fri, 13 Oct 2023 17:34:30 +0000 (10:34 -0700)
committerGopher Robot <gobot@golang.org>
Sat, 14 Oct 2023 21:46:29 +0000 (21:46 +0000)
commitcc47df017da343ee33eee0f4f59974633ca5a486
tree8306e076d4be1c7e57d3f575bd7e145ba02dfcbd
parentdc12cb179a3fb97bf9a12155c742f1737e858f7c
runtime: use real type size in map keys and values functions

We were using the size stored in the map, which is the smaller
of the real type size and 128.

As of CL 61538 we don't use these functions, but we expect to
use them again in the future after #61626 is resolved.

Change-Id: I7bfb4af5f0e3a56361d4019a8ed7c1ec59ff31fd
Reviewed-on: https://go-review.googlesource.com/c/go/+/535215
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Keith Randall <khr@google.com>
src/runtime/export_test.go
src/runtime/map.go
src/runtime/map_test.go