From 47bf8f073ed321e1a1c5aff19c4f4ad6362a1c53 Mon Sep 17 00:00:00 2001 From: mohanson Date: Wed, 22 Oct 2025 10:37:49 +0800 Subject: [PATCH] unique: fix inconsistent panic prefix in canonmap cleanup path Other panic messages in the file use the "unique.canonMap" prefix, but this one used "internal/sync.HashTrieMap", looks like it was copied from the "internal/sync" package. Change-Id: Ic3e85154eb5a593d41c19013d5696afed2178b7e Reviewed-on: https://go-review.googlesource.com/c/go/+/713660 LUCI-TryBot-Result: Go LUCI Reviewed-by: Sean Liao Auto-Submit: Sean Liao Reviewed-by: Michael Knyszek Reviewed-by: David Chase --- src/unique/canonmap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unique/canonmap.go b/src/unique/canonmap.go index a3494eef99..74c95a12af 100644 --- a/src/unique/canonmap.go +++ b/src/unique/canonmap.go @@ -232,7 +232,7 @@ func (m *canonMap[T]) cleanup(hash uintptr, wp weak.Pointer[T]) { // which requires the parents' lock. for i.parent != nil && i.empty() { if hashShift == 8*goarch.PtrSize { - panic("internal/sync.HashTrieMap: ran out of hash bits while iterating") + panic("unique.canonMap: ran out of hash bits while iterating") } hashShift += nChildrenLog2 -- 2.52.0