164 |
|
static final int maxTimedSpins = (NCPUS < 2)? 0 : 32; |
165 |
|
|
166 |
|
/** |
167 |
< |
* The number of times to spin before blocking in untimed |
168 |
< |
* waits. This is greater than timed value because untimed |
169 |
< |
* waits spin faster since they don't need to check times on |
170 |
< |
* each spin. |
167 |
> |
* The number of times to spin before blocking in untimed waits. |
168 |
> |
* This is greater than timed value because untimed waits spin |
169 |
> |
* faster since they don't need to check times on each spin. |
170 |
|
*/ |
171 |
|
static final int maxUntimedSpins = maxTimedSpins * 16; |
172 |
|
|
176 |
|
*/ |
177 |
|
static final long spinForTimeoutThreshold = 1000L; |
178 |
|
|
179 |
< |
/** Dual stack */ |
179 |
> |
/** Dual stack */ |
180 |
|
static final class TransferStack extends Transferer { |
181 |
|
/* |
182 |
|
* This extends Scherer-Scott dual stack algorithm, differing, |