From: mohanson Date: Wed, 22 Oct 2025 02:37:49 +0000 (+0800) Subject: unique: fix inconsistent panic prefix in canonmap cleanup path X-Git-Tag: go1.26rc1~514 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=47bf8f073e;p=gostls13.git 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 --- 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