Skip to content

Commit 47bf8f0

Browse files
mohansongopherbot
authored andcommitted
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 <[email protected]> Reviewed-by: Sean Liao <[email protected]> Auto-Submit: Sean Liao <[email protected]> Reviewed-by: Michael Knyszek <[email protected]> Reviewed-by: David Chase <[email protected]>
1 parent 03bd43e commit 47bf8f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/unique/canonmap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ func (m *canonMap[T]) cleanup(hash uintptr, wp weak.Pointer[T]) {
232232
// which requires the parents' lock.
233233
for i.parent != nil && i.empty() {
234234
if hashShift == 8*goarch.PtrSize {
235-
panic("internal/sync.HashTrieMap: ran out of hash bits while iterating")
235+
panic("unique.canonMap: ran out of hash bits while iterating")
236236
}
237237
hashShift += nChildrenLog2
238238

0 commit comments

Comments
 (0)