From 0da8979210de8749306ddd8b49710d5594bb75c4 Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Thu, 4 Dec 2025 17:27:02 -0800 Subject: 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 Reviewed-by: Cuong Manh Le Reviewed-by: Dmitri Shuralyov LUCI-TryBot-Result: Go LUCI --- src/runtime/alg.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/runtime') 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. -- cgit v1.3-5-g45d5