aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2025-12-04 17:27:02 -0800
committerKeith Randall <khr@golang.org>2026-01-23 20:58:13 -0800
commit0da8979210de8749306ddd8b49710d5594bb75c4 (patch)
tree32dde1028d3240c3e04deadca2afc9e01450e7a7 /src/runtime
parent6eec9bcdb28c9a143db1962fac6847a282dbaf65 (diff)
downloadgo-0da8979210de8749306ddd8b49710d5594bb75c4.tar.xz
cmd/compile: use equality signatures in hash function generation
There aren't a huge number of generated hash functions, so this probably won't save a whole lot of memory. But it means we can clean up a bunch of code by basing equality and hashing on the same underlying infrastructure. Change-Id: I36ed1e49044fecb33120d8736f1c0403a4a2554e Reviewed-on: https://go-review.googlesource.com/c/go/+/727500 Reviewed-by: Keith Randall <khr@google.com> Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/alg.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/runtime/alg.go b/src/runtime/alg.go
index c5951dc20b..9b726b2180 100644
--- a/src/runtime/alg.go
+++ b/src/runtime/alg.go
@@ -199,8 +199,6 @@ func nilinterhash(p unsafe.Pointer, h uintptr) uintptr {
// is slower but more general and is used for hashing interface types
// (called from interhash or nilinterhash, above) or for hashing in
// maps generated by reflect.MapOf (reflect_typehash, below).
-// Note: this function must match the compiler generated
-// functions exactly. See issue 37716.
//
// typehash should be an internal detail,
// but widely used packages access it using linkname.