@@ -79,7 +79,7 @@ func (ht *HashTrieMap[K, V]) Load(key K) (value V, ok bool) {
79
79
}
80
80
i = n .indirect ()
81
81
}
82
- panic ("internal/concurrent.HashMapTrie : ran out of hash bits while iterating" )
82
+ panic ("internal/sync.HashTrieMap : ran out of hash bits while iterating" )
83
83
}
84
84
85
85
// LoadOrStore returns the existing value for the key if present.
@@ -120,7 +120,7 @@ func (ht *HashTrieMap[K, V]) LoadOrStore(key K, value V) (result V, loaded bool)
120
120
i = n .indirect ()
121
121
}
122
122
if ! haveInsertPoint {
123
- panic ("internal/concurrent.HashMapTrie : ran out of hash bits while iterating" )
123
+ panic ("internal/sync.HashTrieMap : ran out of hash bits while iterating" )
124
124
}
125
125
126
126
// Grab the lock and double-check what we saw.
@@ -178,7 +178,7 @@ func (ht *HashTrieMap[K, V]) expand(oldEntry, newEntry *entry[K, V], newHash uin
178
178
top := newIndirect
179
179
for {
180
180
if hashShift == 0 {
181
- panic ("internal/concurrent.HashMapTrie : ran out of hash bits while inserting" )
181
+ panic ("internal/sync.HashTrieMap : ran out of hash bits while inserting" )
182
182
}
183
183
hashShift -= nChildrenLog2 // hashShift is for the level parent is at. We need to go deeper.
184
184
oi := (oldHash >> hashShift ) & nChildrenMask
@@ -228,7 +228,7 @@ func (ht *HashTrieMap[K, V]) Swap(key K, new V) (previous V, loaded bool) {
228
228
i = n .indirect ()
229
229
}
230
230
if ! haveInsertPoint {
231
- panic ("internal/concurrent.HashMapTrie : ran out of hash bits while iterating" )
231
+ panic ("internal/sync.HashTrieMap : ran out of hash bits while iterating" )
232
232
}
233
233
234
234
// Grab the lock and double-check what we saw.
@@ -339,7 +339,7 @@ func (ht *HashTrieMap[K, V]) LoadAndDelete(key K) (value V, loaded bool) {
339
339
// Check if the node is now empty (and isn't the root), and delete it if able.
340
340
for i .parent != nil && i .empty () {
341
341
if hashShift == 8 * goarch .PtrSize {
342
- panic ("internal/concurrent.HashMapTrie : ran out of hash bits while iterating" )
342
+ panic ("internal/sync.HashTrieMap : ran out of hash bits while iterating" )
343
343
}
344
344
hashShift += nChildrenLog2
345
345
@@ -401,7 +401,7 @@ func (ht *HashTrieMap[K, V]) CompareAndDelete(key K, old V) (deleted bool) {
401
401
// Check if the node is now empty (and isn't the root), and delete it if able.
402
402
for i .parent != nil && i .empty () {
403
403
if hashShift == 8 * goarch .PtrSize {
404
- panic ("internal/concurrent.HashMapTrie : ran out of hash bits while iterating" )
404
+ panic ("internal/sync.HashTrieMap : ran out of hash bits while iterating" )
405
405
}
406
406
hashShift += nChildrenLog2
407
407
@@ -454,7 +454,7 @@ func (ht *HashTrieMap[K, V]) find(key K, hash uintptr, valEqual equalFunc, value
454
454
i = n .indirect ()
455
455
}
456
456
if ! found {
457
- panic ("internal/concurrent.HashMapTrie : ran out of hash bits while iterating" )
457
+ panic ("internal/sync.HashTrieMap : ran out of hash bits while iterating" )
458
458
}
459
459
460
460
// Grab the lock and double-check what we saw.
0 commit comments