]> Cypherpunks repositories - gostls13.git/commit
internal/abi,runtime: refactor map constants into one place
authorDavid Chase <drchase@google.com>
Fri, 13 Jan 2023 21:12:47 +0000 (16:12 -0500)
committerDavid Chase <drchase@google.com>
Mon, 23 Jan 2023 15:51:32 +0000 (15:51 +0000)
commite22bd2348c8e3bfdf12197d0b0e194b66bbf5a36
tree0c61869dae136d804b1e82091fc562cde4bf7efe
parente2fe35363d070bf37326d04ed28964e6ba3892da
internal/abi,runtime: refactor map constants into one place

Previously TryBot-tested with bucket bits = 4.
Also tested locally with bucket bits = 5.
This makes it much easier to change the size of map
buckets, and hopefully provides pointers to all the
code that in some way depends on details of map layout.

Change-Id: I9f6669d1eadd02f182d0bc3f959dc5f385fa1683
Reviewed-on: https://go-review.googlesource.com/c/go/+/462115
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: David Chase <drchase@google.com>
Reviewed-by: Austin Clements <austin@google.com>
13 files changed:
src/cmd/compile/internal/reflectdata/reflect.go
src/cmd/dist/buildtool.go
src/cmd/link/internal/ld/dwarf.go
src/internal/abi/abi.go
src/internal/abi/funcpc.go [new file with mode: 0644]
src/internal/abi/map.go [new file with mode: 0644]
src/reflect/all_test.go
src/reflect/type.go
src/runtime/map.go
src/runtime/map_test.go
src/runtime/runtime-gdb.py
src/runtime/runtime-gdb_test.go
test/codegen/maps.go