# | Line 2330 | Line 2330 | public class ConcurrentHashMapV8<K, V> | |
---|---|---|
2330 | if (initialCapacity < concurrencyLevel) // Use at least as many bins | |
2331 | initialCapacity = concurrencyLevel; // as estimated threads | |
2332 | long size = (long)(1.0 + (long)initialCapacity / loadFactor); | |
2333 | < | int cap = ((size >= (long)MAXIMUM_CAPACITY) ? |
2334 | < | MAXIMUM_CAPACITY: tableSizeFor((int)size)); |
2333 | > | int cap = (size >= (long)MAXIMUM_CAPACITY) ? |
2334 | > | MAXIMUM_CAPACITY : tableSizeFor((int)size); |
2335 | this.counter = new LongAdder(); | |
2336 | this.sizeCtl = cap; | |
2337 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |