381 |
|
if (active) { |
382 |
|
int a; // inline p.tryDecrementActiveCount |
383 |
|
active = false; |
384 |
< |
do {} while(!UNSAFE.compareAndSwapInt |
385 |
< |
(p, poolRunStateOffset, a = p.runState, a - 1)); |
384 |
> |
do {} while (!UNSAFE.compareAndSwapInt |
385 |
> |
(p, poolRunStateOffset, a = p.runState, a - 1)); |
386 |
|
} |
387 |
|
cancelTasks(); |
388 |
|
setTerminated(); |
1126 |
|
} |
1127 |
|
if (p.isQuiescent()) { |
1128 |
|
active = true; // re-activate |
1129 |
< |
do {} while(!UNSAFE.compareAndSwapInt |
1130 |
< |
(p, poolRunStateOffset, a = p.runState, a+1)); |
1129 |
> |
do {} while (!UNSAFE.compareAndSwapInt |
1130 |
> |
(p, poolRunStateOffset, a = p.runState, a+1)); |
1131 |
|
return; |
1132 |
|
} |
1133 |
|
} |