]> Cypherpunks repositories - gostls13.git/commitdiff
unique: fix inconsistent panic prefix in canonmap cleanup path
authormohanson <mohanson@outlook.com>
Wed, 22 Oct 2025 02:37:49 +0000 (10:37 +0800)
committerGopher Robot <gobot@golang.org>
Thu, 23 Oct 2025 20:42:09 +0000 (13:42 -0700)
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 <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Sean Liao <sean@liao.dev>
Auto-Submit: Sean Liao <sean@liao.dev>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: David Chase <drchase@google.com>
src/unique/canonmap.go

index a3494eef997fd2bc36004d9aa07049ab09df9a7d..74c95a12af9177cf3a331000e4bbe99d4111f612 100644 (file)
@@ -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