6 |
|
|
7 |
|
package jsr166e; |
8 |
|
import java.util.Random; |
9 |
– |
import java.util.concurrent.atomic.AtomicInteger; |
10 |
– |
import java.util.concurrent.atomic.AtomicLong; |
9 |
|
|
10 |
|
/** |
11 |
|
* A package-local class holding common representation and mechanics |
138 |
|
*/ |
139 |
|
static final ThreadHashCode threadHashCode = new ThreadHashCode(); |
140 |
|
|
141 |
< |
/** Nomber of CPUS, to place bound on table size */ |
141 |
> |
/** Number of CPUS, to place bound on table size */ |
142 |
|
static final int NCPU = Runtime.getRuntime().availableProcessors(); |
143 |
|
|
144 |
|
/** |
148 |
|
|
149 |
|
/** |
150 |
|
* Base value, used mainly when there is no contention, but also as |
151 |
< |
* a fallback during table initializion races. Updated via CAS. |
151 |
> |
* a fallback during table initialization races. Updated via CAS. |
152 |
|
*/ |
153 |
|
transient volatile long base; |
154 |
|
|