1262 |
|
} |
1263 |
|
|
1264 |
|
/** |
1265 |
– |
* Disabled demo test for (unfixed as of 2017-11) |
1265 |
|
* JDK-8191483: AbstractQueuedSynchronizer cancel/cancel race |
1266 |
|
* ant -Djsr166.tckTestClass=AbstractQueuedSynchronizerTest -Djsr166.methodFilter=testCancelCancelRace -Djsr166.runsPerTest=100 tck |
1267 |
|
*/ |
1268 |
< |
public void DISABLED_testCancelCancelRace() throws InterruptedException { |
1268 |
> |
public void testCancelCancelRace() throws InterruptedException { |
1269 |
|
class Sync extends AbstractQueuedSynchronizer { |
1270 |
|
protected boolean tryAcquire(int acquires) { |
1271 |
|
return !hasQueuedPredecessors() && compareAndSetState(0, 1); |