ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/ReentrantReadWriteLockTest.java
Revision 1.59 - (view) (download) (annotate) - [select for diffs]
Sat May 7 19:03:26 2011 UTC (13 years 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 (13 years 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 (13 years 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 (13 years 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 (13 years 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 (13 years 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 (13 years 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 (13 years 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 (13 years 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 (13 years 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 (13 years 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 (13 years 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 (13 years 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 (13 years 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 (13 years 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 (13 years, 2 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 (13 years, 7 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 (13 years, 8 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 (13 years, 8 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 (14 years, 5 months 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 (14 years, 5 months 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 (14 years, 5 months 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 (14 years, 5 months 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 (14 years, 5 months 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 (14 years, 5 months 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 (14 years, 6 months 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 (14 years, 6 months 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 (14 years, 6 months 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 (14 years, 6 months 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 (14 years, 6 months 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 (14 years, 6 months 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 (14 years, 6 months 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 (18 years 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 (18 years, 2 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 (18 years, 3 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 (18 years, 9 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 (18 years, 9 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 (19 years 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 (19 years, 4 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 (19 years, 10 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 (20 years, 3 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 (20 years, 4 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 (20 years, 4 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 (20 years, 4 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 (20 years, 4 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 (20 years, 4 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 (20 years, 4 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 (20 years, 4 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 (20 years, 4 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 (20 years, 4 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 (20 years, 5 months 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 (20 years, 5 months 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 (20 years, 5 months 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 (20 years, 6 months 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 (20 years, 7 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 (20 years, 8 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 (20 years, 8 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 (20 years, 8 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 (20 years, 8 months ago) by dl
Branch: MAIN
First check-in of tests to be in tck

Convenience Links

Links to HEAD: (view) (download) (annotate) Links to release-1_7_0: (view) (download) (annotate)

Compare Revisions

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