Searched refs:tryOptimisticRead (Results 1 – 2 of 2) sorted by relevance
261 assertTrue((s = lock.tryOptimisticRead()) != 0L); in testValidate()276 assertFalse(lock.validate(lock.tryOptimisticRead())); in testValidate2()649 assertTrue((p = lock.tryOptimisticRead()) != 0L); in testValidateOptimistic()652 assertFalse((p = lock.tryOptimisticRead()) != 0L); in testValidateOptimistic()655 assertTrue((p = lock.tryOptimisticRead()) != 0L); in testValidateOptimistic()659 assertTrue((p = lock.tryOptimisticRead()) != 0L); in testValidateOptimistic()664 assertFalse((p = lock.tryOptimisticRead()) != 0L); in testValidateOptimistic()668 assertTrue((p = lock.tryOptimisticRead()) != 0L); in testValidateOptimistic()672 assertFalse((p = lock.tryOptimisticRead()) != 0L); in testValidateOptimistic()677 assertTrue((p = lock.tryOptimisticRead()) != 0L); in testValidateOptimistic()[all …]
507 public long tryOptimisticRead() { in tryOptimisticRead() method in StampedLock