# | Line 1283 | Line 1283 | public class AbstractQueuedSynchronizerT | |
---|---|---|
1283 | try { | |
1284 | s.acquireInterruptibly(1); | |
1285 | shouldThrow(); | |
1286 | < | } catch (InterruptedException expected) {} |
1286 | > | } catch (InterruptedException success) {} |
1287 | }; | |
1288 | for (int i = 0; i < 2; i++) { | |
1289 | Thread thread = new Thread(failedAcquire); | |
# | Line 1338 | Line 1338 | public class AbstractQueuedSynchronizerT | |
1338 | final Thread thread = newStartedThread(new CheckedRunnable() { | |
1339 | public void realRun() { | |
1340 | try { | |
1341 | < | if (ThreadLocalRandom.current().nextBoolean()) |
1341 | > | if (randomBoolean()) |
1342 | s.acquire(1); | |
1343 | else | |
1344 | s.acquireShared(1); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |