103 |
|
* does <em>not</em> allow {@code null} to be used as a key or value. |
104 |
|
* |
105 |
|
* <p>ConcurrentHashMapV8s support parallel operations using the {@link |
106 |
< |
* ForkJoinPool#commonPool}. (Task that may be used in other contexts |
106 |
> |
* ForkJoinPool#commonPool}. (Tasks that may be used in other contexts |
107 |
|
* are available in class {@link ForkJoinTasks}). These operations are |
108 |
|
* designed to be safely, and often sensibly, applied even with maps |
109 |
|
* that are being concurrently updated by other threads; for example, |
4968 |
|
baseLimit = baseSize = t.length; |
4969 |
|
if (t != null) { |
4970 |
|
long n = m.counter.sum(); |
4971 |
< |
int par = (pool = getPool()) == null? |
4971 |
> |
int par = ((pool = getPool()) == null) ? |
4972 |
|
ForkJoinPool.getCommonPoolParallelism() : |
4973 |
|
pool.getParallelism(); |
4974 |
|
int sp = par << 3; // slack of 8 |