Don't fall back when we're already in the slow case.
This commit is contained in:
parent
4aaa4bf20c
commit
f406d3cf89
|
@ -168,7 +168,7 @@ public final class StringMap<V> extends AbstractMap<String, V> {
|
|||
* If we suffer a very large number of collisions, fall back from the cached
|
||||
* String.hashCode() to an (uncached) hash code that isn't predictable.
|
||||
*/
|
||||
if (collisionCount >= MAX_COLLISIONS) {
|
||||
if (useFastHash && collisionCount >= MAX_COLLISIONS) {
|
||||
LinkedEntry<V> entry = header.nxt;
|
||||
|
||||
// clear the table
|
||||
|
|
Loading…
Reference in New Issue
Block a user