351 |
|
* Each Segment holds a count and table corresponding to a segment |
352 |
|
* of the table. This class contains only those methods for |
353 |
|
* directly assigning these fields, which must only be called |
354 |
< |
* while holding locks |
354 |
> |
* while holding locks. |
355 |
|
*/ |
356 |
|
static final class Segment extends ReentrantLock { |
357 |
|
volatile Node[] table; |
386 |
|
} |
387 |
|
|
388 |
|
/** |
389 |
< |
* See the similar code in ConcurrentHashMap for explanation |
389 |
> |
* See the similar code in ConcurrentHashMap for explanation. |
390 |
|
*/ |
391 |
|
final Node[] resizeTable(CustomConcurrentHashMap cchm) { |
392 |
|
Node[] oldTable = table; |