[cvs] / jsr166 / src / test / tck / ReentrantReadWriteLockTest.java Repository:
ViewVC logotype

Log of /jsr166/src/test/tck/ReentrantReadWriteLockTest.java

Parent Directory Parent Directory


Links to HEAD: (view) (download) (annotate)
Sticky Tag:

Revision 1.81 - (view) (download) (annotate) - [select for diffs]
Mon Jul 17 21:01:30 2017 UTC (5 months ago) by jsr166
Branch: MAIN
CVS Tags: HEAD
Changes since 1.80: +1 -0 lines
Diff to previous 1.80
suppress [WaitNotInLoop] errorprone warning

Revision 1.80 - (view) (download) (annotate) - [select for diffs]
Sun May 14 02:03:15 2017 UTC (7 months ago) by jsr166
Branch: MAIN
Changes since 1.79: +16 -17 lines
Diff to previous 1.79
claw back some millis using assertThreadBlocks

Revision 1.79 - (view) (download) (annotate) - [select for diffs]
Sun Jan 1 20:34:39 2017 UTC (11 months, 2 weeks ago) by jsr166
Branch: MAIN
Changes since 1.78: +46 -38 lines
Diff to previous 1.78
minor test hygiene improvements

Revision 1.78 - (view) (download) (annotate) - [select for diffs]
Fri Jul 3 05:48:30 2015 UTC (2 years, 5 months ago) by jsr166
Branch: MAIN
Changes since 1.77: +5 -3 lines
Diff to previous 1.77
only test Date/currentTimeMillis with Date/currentTimeMillis, not with nanoTime

Revision 1.77 - (view) (download) (annotate) - [select for diffs]
Fri Jul 3 01:25:15 2015 UTC (2 years, 5 months ago) by jsr166
Branch: MAIN
Changes since 1.76: +2 -4 lines
Diff to previous 1.76
use delayedDate(); use timeoutMillis()

Revision 1.76 - (view) (download) (annotate) - [select for diffs]
Fri Jul 3 00:25:35 2015 UTC (2 years, 5 months ago) by jsr166
Branch: MAIN
Changes since 1.75: +1 -1 lines
Diff to previous 1.75
minor improvements

Revision 1.75 - (view) (download) (annotate) - [select for diffs]
Fri Jul 3 00:23:43 2015 UTC (2 years, 5 months ago) by jsr166
Branch: MAIN
Changes since 1.74: +7 -5 lines
Diff to previous 1.74
minor improvements

Revision 1.74 - (view) (download) (annotate) - [select for diffs]
Sun May 24 01:42:14 2015 UTC (2 years, 6 months ago) by jsr166
Branch: MAIN
Changes since 1.73: +3 -3 lines
Diff to previous 1.73
whitespace

Revision 1.73 - (view) (download) (annotate) - [select for diffs]
Sat Apr 25 04:55:31 2015 UTC (2 years, 7 months ago) by jsr166
Branch: MAIN
Changes since 1.72: +1 -1 lines
Diff to previous 1.72
improve main methods; respect system properties; actually fail if a test fails

Revision 1.72 - (view) (download) (annotate) - [select for diffs]
Fri Feb 27 22:06:24 2015 UTC (2 years, 9 months ago) by jsr166
Branch: MAIN
Changes since 1.71: +6 -10 lines
Diff to previous 1.71
catch clause readability

Revision 1.71 - (view) (download) (annotate) - [select for diffs]
Fri Feb 27 21:43:18 2015 UTC (2 years, 9 months ago) by jsr166
Branch: MAIN
Changes since 1.70: +2 -6 lines
Diff to previous 1.70
StampedLockTest.java

Revision 1.70 - (view) (download) (annotate) - [select for diffs]
Wed Dec 31 20:34:16 2014 UTC (2 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.69: +2 -0 lines
Diff to previous 1.69
add default clause to switch-on-enums

Revision 1.69 - (view) (download) (annotate) - [select for diffs]
Wed Dec 31 19:05:43 2014 UTC (2 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.68: +10 -4 lines
Diff to previous 1.68
no wildcard imports

Revision 1.68 - (view) (download) (annotate) - [select for diffs]
Wed Dec 31 05:04:04 2014 UTC (2 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.67: +1 -1 lines
Diff to previous 1.67
delete stray semicolons

Revision 1.67 - (view) (download) (annotate) - [select for diffs]
Thu May 30 03:28:55 2013 UTC (4 years, 6 months ago) by jsr166
Branch: MAIN
Changes since 1.66: +1 -1 lines
Diff to previous 1.66
prefer assertNotSame, assertNotNull to assertTrue

Revision 1.66 - (view) (download) (annotate) - [select for diffs]
Fri Jun 3 05:07:14 2011 UTC (6 years, 6 months ago) by jsr166
Branch: MAIN
Changes since 1.65: +27 -10 lines
Diff to previous 1.65
improve "uninterruptible" tests

Revision 1.65 - (view) (download) (annotate) - [select for diffs]
Tue May 31 16:16:24 2011 UTC (6 years, 6 months ago) by jsr166
Branch: MAIN
Changes since 1.64: +4 -3 lines
Diff to previous 1.64
use serialClone in serialization tests; update imports

Revision 1.64 - (view) (download) (annotate) - [select for diffs]
Tue May 24 23:40:14 2011 UTC (6 years, 6 months ago) by jsr166
Branch: MAIN
Changes since 1.63: +18 -22 lines
Diff to previous 1.63
pretty up testToString

Revision 1.63 - (view) (download) (annotate) - [select for diffs]
Sat May 21 06:24:33 2011 UTC (6 years, 7 months ago) by jsr166
Branch: MAIN
Changes since 1.62: +14 -20 lines
Diff to previous 1.62
various test improvements

Revision 1.62 - (view) (download) (annotate) - [select for diffs]
Sun May 15 17:30:21 2011 UTC (6 years, 7 months ago) by jsr166
Branch: MAIN
Changes since 1.61: +1 -1 lines
Diff to previous 1.61
s/AssertionError/AssertionFailedError/

Revision 1.61 - (view) (download) (annotate) - [select for diffs]
Fri May 13 21:48:59 2011 UTC (6 years, 7 months ago) by jsr166
Branch: MAIN
Changes since 1.60: +57 -27 lines
Diff to previous 1.60
More cross-pollination of RL and RRWL tests; don't rely on thread.join not returning early

Revision 1.60 - (view) (download) (annotate) - [select for diffs]
Mon May 9 20:00:19 2011 UTC (6 years, 7 months ago) by jsr166
Branch: MAIN
Changes since 1.59: +445 -405 lines
Diff to previous 1.59
Run every test in both non-fair and fair modes

Revision 1.59 - (view) (download) (annotate) - [select for diffs]
Sat May 7 19:03:26 2011 UTC (6 years, 7 months ago) by jsr166
Branch: MAIN
CVS Tags: release-1_7_0
Changes since 1.58: +79 -26 lines
Diff to previous 1.58
Improve ReentrantLock and ReentrantReadWriteLock tests

Revision 1.58 - (view) (download) (annotate) - [select for diffs]
Sat May 7 14:43:13 2011 UTC (6 years, 7 months ago) by jsr166
Branch: MAIN
Changes since 1.57: +180 -101 lines
Diff to previous 1.57
improve infrastructure; remove delay(); add tests of multiple competing locking threads

Revision 1.57 - (view) (download) (annotate) - [select for diffs]
Sat May 7 11:15:04 2011 UTC (6 years, 7 months ago) by dl
Branch: MAIN
Changes since 1.56: +3 -4 lines
Diff to previous 1.56
Revert a v56 change that inadvertantly required unguaranteed ordering

Revision 1.56 - (view) (download) (annotate) - [select for diffs]
Tue May 3 06:08:49 2011 UTC (6 years, 7 months ago) by jsr166
Branch: MAIN
Changes since 1.55: +369 -233 lines
Diff to previous 1.55
rewrite ReentrantReadWriteLockTest

Revision 1.55 - (view) (download) (annotate) - [select for diffs]
Mon May 2 01:15:26 2011 UTC (6 years, 7 months ago) by jsr166
Branch: MAIN
Changes since 1.54: +2 -0 lines
Diff to previous 1.54
improve testReadAfterWriteLock

Revision 1.54 - (view) (download) (annotate) - [select for diffs]
Mon May 2 01:07:15 2011 UTC (6 years, 7 months ago) by jsr166
Branch: MAIN
Changes since 1.53: +15 -14 lines
Diff to previous 1.53
rename releaseLock to releaseWriteLock

Revision 1.53 - (view) (download) (annotate) - [select for diffs]
Mon May 2 00:49:26 2011 UTC (6 years, 7 months ago) by jsr166
Branch: MAIN
Changes since 1.52: +47 -71 lines
Diff to previous 1.52
replace Thread.join with awaitTermination(Thread,long)

Revision 1.52 - (view) (download) (annotate) - [select for diffs]
Mon May 2 00:34:12 2011 UTC (6 years, 7 months ago) by jsr166
Branch: MAIN
Changes since 1.51: +30 -15 lines
Diff to previous 1.51
Improve testAwait*_Interrupt

Revision 1.51 - (view) (download) (annotate) - [select for diffs]
Mon May 2 00:14:09 2011 UTC (6 years, 7 months ago) by jsr166
Branch: MAIN
Changes since 1.50: +1 -1 lines
Diff to previous 1.50
Improve testReadLockInterruptibly

Revision 1.50 - (view) (download) (annotate) - [select for diffs]
Mon May 2 00:11:34 2011 UTC (6 years, 7 months ago) by jsr166
Branch: MAIN
Changes since 1.49: +1 -2 lines
Diff to previous 1.49
Improve testWriteLockInterruptibly

Revision 1.49 - (view) (download) (annotate) - [select for diffs]
Mon May 2 00:07:54 2011 UTC (6 years, 7 months ago) by jsr166
Branch: MAIN
Changes since 1.48: +1 -0 lines
Diff to previous 1.48
Improve testReadTryLock_Interrupted

Revision 1.48 - (view) (download) (annotate) - [select for diffs]
Mon May 2 00:06:45 2011 UTC (6 years, 7 months ago) by jsr166
Branch: MAIN
Changes since 1.47: +1 -2 lines
Diff to previous 1.47
Improve testReadLockInterruptibly_Interrupted

Revision 1.47 - (view) (download) (annotate) - [select for diffs]
Mon May 2 00:04:49 2011 UTC (6 years, 7 months ago) by jsr166
Branch: MAIN
Changes since 1.46: +1 -1 lines
Diff to previous 1.46
Improve testWriteTryLock_Interrupted

Revision 1.46 - (view) (download) (annotate) - [select for diffs]
Mon May 2 00:03:34 2011 UTC (6 years, 7 months ago) by jsr166
Branch: MAIN
Changes since 1.45: +10 -5 lines
Diff to previous 1.45
Improve testWriteLockInterruptibly_Interrupted

Revision 1.45 - (view) (download) (annotate) - [select for diffs]
Sun May 1 23:49:41 2011 UTC (6 years, 7 months ago) by jsr166
Branch: MAIN
Changes since 1.44: +40 -81 lines
Diff to previous 1.44
use newStartedThread

Revision 1.44 - (view) (download) (annotate) - [select for diffs]
Tue Mar 15 19:47:07 2011 UTC (6 years, 9 months ago) by jsr166
Branch: MAIN
Changes since 1.43: +1 -1 lines
Diff to previous 1.43
Update Creative Commons license URL in legal notices

Revision 1.43 - (view) (download) (annotate) - [select for diffs]
Sat Oct 9 19:30:35 2010 UTC (7 years, 2 months ago) by jsr166
Branch: MAIN
Changes since 1.42: +4 -4 lines
Diff to previous 1.42
whitespace

Revision 1.42 - (view) (download) (annotate) - [select for diffs]
Thu Sep 16 00:52:49 2010 UTC (7 years, 3 months ago) by jsr166
Branch: MAIN
Changes since 1.41: +17 -17 lines
Diff to previous 1.41
testcase hygiene: introduce CheckedRecursiveAction and CheckedRecursiveTask; eliminate almost all threadAssertXXX; use preferred junit conventions;narrow the scope of exception checking code; make sure test failures in non-junit threads produce proper stacktraces

Revision 1.41 - (view) (download) (annotate) - [select for diffs]
Wed Aug 25 00:07:03 2010 UTC (7 years, 3 months ago) by jsr166
Branch: MAIN
Changes since 1.40: +1 -1 lines
Diff to previous 1.40
whitespace

Revision 1.40 - (view) (download) (annotate) - [select for diffs]
Tue Dec 1 06:03:49 2009 UTC (8 years ago) by jsr166
Branch: MAIN
Changes since 1.39: +1 -1 lines
Diff to previous 1.39
Use MILLISECONDS.toNanos instead of multiplying by 1000*1000; use explicit assertEquals instead of assertTrue(...!= null); improve testPutWithTake

Revision 1.39 - (view) (download) (annotate) - [select for diffs]
Mon Nov 30 08:31:09 2009 UTC (8 years ago) by jsr166
Branch: MAIN
Changes since 1.38: +3 -2 lines
Diff to previous 1.38
replace absolute waits with _DELAY_MS; 1000 => 1000L; short delay after starting a thread before interrupting it

Revision 1.38 - (view) (download) (annotate) - [select for diffs]
Sat Nov 21 21:59:50 2009 UTC (8 years ago) by jsr166
Branch: MAIN
Changes since 1.37: +2 -1 lines
Diff to previous 1.37
Fix rare failures in testWriteTryLock_Interrupted

Revision 1.37 - (view) (download) (annotate) - [select for diffs]
Sat Nov 21 10:25:05 2009 UTC (8 years ago) by jsr166
Branch: MAIN
Changes since 1.36: +111 -134 lines
Diff to previous 1.36
improve exception handling

Revision 1.36 - (view) (download) (annotate) - [select for diffs]
Sat Nov 21 02:33:20 2009 UTC (8 years ago) by jsr166
Branch: MAIN
Changes since 1.35: +6 -5 lines
Diff to previous 1.35
import static TimeUnit.MILLISECONDS

Revision 1.35 - (view) (download) (annotate) - [select for diffs]
Sat Nov 21 02:07:27 2009 UTC (8 years ago) by jsr166
Branch: MAIN
Changes since 1.34: +203 -203 lines
Diff to previous 1.34
untabify

Revision 1.34 - (view) (download) (annotate) - [select for diffs]
Tue Nov 17 14:45:32 2009 UTC (8 years, 1 month ago) by jsr166
Branch: MAIN
Changes since 1.33: +6 -2 lines
Diff to previous 1.33
fix testAwait_Timeout and testAwaitUntil_Timeout

Revision 1.33 - (view) (download) (annotate) - [select for diffs]
Tue Nov 17 14:33:55 2009 UTC (8 years, 1 month ago) by jsr166
Branch: MAIN
Changes since 1.32: +105 -201 lines
Diff to previous 1.32
use CheckedRunnable

Revision 1.32 - (view) (download) (annotate) - [select for diffs]
Tue Nov 17 14:18:28 2009 UTC (8 years, 1 month ago) by jsr166
Branch: MAIN
Changes since 1.31: +415 -625 lines
Diff to previous 1.31
declare checked exceptions in test methods

Revision 1.31 - (view) (download) (annotate) - [select for diffs]
Tue Nov 17 13:40:14 2009 UTC (8 years, 1 month ago) by jsr166
Branch: MAIN
Changes since 1.30: +8 -8 lines
Diff to previous 1.30
coding style

Revision 1.30 - (view) (download) (annotate) - [select for diffs]
Mon Nov 16 05:30:08 2009 UTC (8 years, 1 month ago) by jsr166
Branch: MAIN
Changes since 1.29: +35 -35 lines
Diff to previous 1.29
whitespace

Revision 1.29 - (view) (download) (annotate) - [select for diffs]
Mon Nov 16 04:57:10 2009 UTC (8 years, 1 month ago) by jsr166
Branch: MAIN
Changes since 1.28: +55 -55 lines
Diff to previous 1.28
whitespace

Revision 1.28 - (view) (download) (annotate) - [select for diffs]
Mon Nov 2 20:28:31 2009 UTC (8 years, 1 month ago) by jsr166
Branch: MAIN
Changes since 1.27: +108 -108 lines
Diff to previous 1.27
whitespace

Revision 1.27 - (view) (download) (annotate) - [select for diffs]
Thu May 18 10:29:23 2006 UTC (11 years, 7 months ago) by dl
Branch: MAIN
Changes since 1.26: +3 -0 lines
Diff to previous 1.26
Add sleeps after interrupts to force ordering

Revision 1.26 - (view) (download) (annotate) - [select for diffs]
Fri Feb 24 00:03:16 2006 UTC (11 years, 9 months ago) by dl
Branch: MAIN
Changes since 1.25: +4 -0 lines
Diff to previous 1.25
Make Interruptible locking tests obey delay conventions

Revision 1.25 - (view) (download) (annotate) - [select for diffs]
Sun Jan 29 21:17:38 2006 UTC (11 years, 10 months ago) by dl
Branch: MAIN
Changes since 1.24: +19 -0 lines
Diff to previous 1.24
Test writeLock.sHeldByCurrentThread() and getHoldCount()

Revision 1.24 - (view) (download) (annotate) - [select for diffs]
Tue Aug 2 11:34:04 2005 UTC (12 years, 4 months ago) by dl
Branch: MAIN
Changes since 1.23: +44 -0 lines
Diff to previous 1.23
Add tests

Revision 1.23 - (view) (download) (annotate) - [select for diffs]
Mon Aug 1 19:53:01 2005 UTC (12 years, 4 months ago) by dl
Branch: MAIN
Changes since 1.22: +181 -3 lines
Diff to previous 1.22
Straighten out conditionals; add tests

Revision 1.22 - (view) (download) (annotate) - [select for diffs]
Tue May 3 16:02:00 2005 UTC (12 years, 7 months ago) by dl
Branch: MAIN
Changes since 1.21: +47 -18 lines
Diff to previous 1.21
Fix some asserts and awaitUninterruptibly tests

Revision 1.21 - (view) (download) (annotate) - [select for diffs]
Thu Jan 20 00:39:13 2005 UTC (12 years, 11 months ago) by dl
Branch: MAIN
Changes since 1.20: +0 -2 lines
Diff to previous 1.20
Weaken lock await assertion, add queue testRemoveElementAndAdd

Revision 1.20 - (view) (download) (annotate) - [select for diffs]
Fri Jul 2 10:24:00 2004 UTC (13 years, 5 months ago) by dl
Branch: MAIN
Changes since 1.19: +100 -0 lines
Diff to previous 1.19
Added tests for reentrant read acquire while hold write lock under contention

Revision 1.19 - (view) (download) (annotate) - [select for diffs]
Sun Jan 25 13:25:28 2004 UTC (13 years, 10 months ago) by dl
Branch: MAIN
CVS Tags: JSR166_PFD
Changes since 1.18: +47 -0 lines
Diff to previous 1.18
test hasQueuedThread

Revision 1.18 - (view) (download) (annotate) - [select for diffs]
Sat Jan 10 01:41:59 2004 UTC (13 years, 11 months ago) by dl
Branch: MAIN
Changes since 1.17: +45 -0 lines
Diff to previous 1.17
Test toString

Revision 1.17 - (view) (download) (annotate) - [select for diffs]
Thu Jan 8 01:29:46 2004 UTC (13 years, 11 months ago) by dl
Branch: MAIN
Changes since 1.16: +0 -1 lines
Diff to previous 1.16
Add Atomic array constructor tests; adjust timings on other tests

Revision 1.16 - (view) (download) (annotate) - [select for diffs]
Wed Jan 7 01:02:17 2004 UTC (13 years, 11 months ago) by dl
Branch: MAIN
Changes since 1.15: +4 -3 lines
Diff to previous 1.15
Added and fised testcases

Revision 1.15 - (view) (download) (annotate) - [select for diffs]
Mon Dec 29 19:05:40 2003 UTC (13 years, 11 months ago) by dl
Branch: MAIN
Changes since 1.14: +8 -8 lines
Diff to previous 1.14
spellcheck

Revision 1.14 - (view) (download) (annotate) - [select for diffs]
Sun Dec 28 22:44:59 2003 UTC (13 years, 11 months ago) by dl
Branch: MAIN
Changes since 1.13: +43 -0 lines
Diff to previous 1.13
test for throws of NullPointerExceptions

Revision 1.13 - (view) (download) (annotate) - [select for diffs]
Sun Dec 28 21:56:18 2003 UTC (13 years, 11 months ago) by dl
Branch: MAIN
Changes since 1.12: +192 -18 lines
Diff to previous 1.12
Add tests for AQS extensions; adjust others for protected condition methods

Revision 1.12 - (view) (download) (annotate) - [select for diffs]
Sat Dec 27 19:26:43 2003 UTC (13 years, 11 months ago) by dl
Branch: MAIN
Changes since 1.11: +5 -4 lines
Diff to previous 1.11
Headers reference Creative Commons

Revision 1.11 - (view) (download) (annotate) - [select for diffs]
Sat Dec 27 18:27:02 2003 UTC (13 years, 11 months ago) by dl
Branch: MAIN
Changes since 1.10: +2 -77 lines
Diff to previous 1.10
Adjust protected method tests

Revision 1.10 - (view) (download) (annotate) - [select for diffs]
Sat Dec 27 14:16:33 2003 UTC (13 years, 11 months ago) by dl
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9
Adjust protected method test class

Revision 1.9 - (view) (download) (annotate) - [select for diffs]
Mon Dec 22 00:48:56 2003 UTC (14 years ago) by dl
Branch: MAIN
Changes since 1.8: +10 -10 lines
Diff to previous 1.8
Add and adjust tests reflecting API changes

Revision 1.8 - (view) (download) (annotate) - [select for diffs]
Fri Dec 19 14:44:25 2003 UTC (14 years ago) by dl
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7
Adjust condition declarations

Revision 1.7 - (view) (download) (annotate) - [select for diffs]
Thu Dec 4 20:54:46 2003 UTC (14 years ago) by dl
Branch: MAIN
CVS Tags: JSR166_DEC9_POST_ES_SUBMIT, JSR166_DEC9_PRE_ES_SUBMIT
Changes since 1.6: +4 -4 lines
Diff to previous 1.6
Collapsed Cancellable and Future

Revision 1.6 - (view) (download) (annotate) - [select for diffs]
Mon Nov 10 13:32:08 2003 UTC (14 years, 1 month ago) by dl
Branch: MAIN
Changes since 1.5: +330 -0 lines
Diff to previous 1.5
test new instrumentation methods

Revision 1.5 - (view) (download) (annotate) - [select for diffs]
Fri Sep 26 15:33:13 2003 UTC (14 years, 2 months ago) by dl
Branch: MAIN
CVS Tags: JSR166_NOV3_FREEZE
Changes since 1.4: +2 -2 lines
Diff to previous 1.4
Javadoc fixes

Revision 1.4 - (view) (download) (annotate) - [select for diffs]
Sat Sep 20 18:20:08 2003 UTC (14 years, 3 months ago) by dl
Branch: MAIN
Changes since 1.3: +188 -86 lines
Diff to previous 1.3
Documentation scaffolding

Revision 1.3 - (view) (download) (annotate) - [select for diffs]
Sun Sep 14 20:42:40 2003 UTC (14 years, 3 months ago) by dl
Branch: MAIN
Changes since 1.2: +23 -30 lines
Diff to previous 1.2
New base class JSR166TestCase

Revision 1.2 - (view) (download) (annotate) - [select for diffs]
Sun Sep 7 20:39:11 2003 UTC (14 years, 3 months ago) by dl
Branch: MAIN
Changes since 1.1: +581 -36 lines
Diff to previous 1.1
Added serialization and lock tests

Revision 1.1 - (view) (download) (annotate) - [select for diffs]
Sun Aug 31 19:24:55 2003 UTC (14 years, 3 months ago) by dl
Branch: MAIN
First check-in of tests to be in tck

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8