2199 |
|
} |
2200 |
|
|
2201 |
|
/** |
2202 |
< |
* Advances next; returns nextVal or null if terminated |
2202 |
> |
* Advances next; returns nextVal or null if terminated. |
2203 |
|
* See above for explanation. |
2204 |
|
*/ |
2205 |
|
final Object advance() { |
2249 |
|
/* ---------------- Public operations -------------- */ |
2250 |
|
|
2251 |
|
/** |
2252 |
< |
* Creates a new, empty map with the default initial table size (16), |
2252 |
> |
* Creates a new, empty map with the default initial table size (16). |
2253 |
|
*/ |
2254 |
|
public ConcurrentHashMapV8() { |
2255 |
|
this.counter = new LongAdder(); |
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 |
|
} |