mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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 <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>
This commit is contained in:
parent
03bd43e8bb
commit
47bf8f073e
1 changed files with 1 additions and 1 deletions
|
|
@ -232,7 +232,7 @@ func (m *canonMap[T]) cleanup(hash uintptr, wp weak.Pointer[T]) {
|
||||||
// which requires the parents' lock.
|
// which requires the parents' lock.
|
||||||
for i.parent != nil && i.empty() {
|
for i.parent != nil && i.empty() {
|
||||||
if hashShift == 8*goarch.PtrSize {
|
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
|
hashShift += nChildrenLog2
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue