ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/AbstractQueuedSynchronizerTest.java
Revision 1.73 - (view) (download) (annotate) - [select for diffs]
Fri Aug 16 02:32:26 2019 UTC (4 years, 8 months ago) by jsr166
Branch: MAIN
CVS Tags: HEAD
Changes since 1.72: +16 -2 lines
Diff to previous 1.72
check that try-acquire methods can are not called again if they fail once

Revision 1.72 - (view) (download) (annotate) - [select for diffs]
Thu Aug 15 16:06:13 2019 UTC (4 years, 8 months ago) by jsr166
Branch: MAIN
Changes since 1.71: +3 -1 lines
Diff to previous 1.71
testInterruptedFailingAcquire: add hasContended assertions

Revision 1.71 - (view) (download) (annotate) - [select for diffs]
Thu Aug 15 16:01:30 2019 UTC (4 years, 8 months ago) by jsr166
Branch: MAIN
Changes since 1.70: +25 -14 lines
Diff to previous 1.70
testInterruptedFailingAcquire: test interruptible acquire methods

Revision 1.70 - (view) (download) (annotate) - [select for diffs]
Thu Aug 15 14:56:32 2019 UTC (4 years, 8 months ago) by jsr166
Branch: MAIN
Changes since 1.69: +6 -0 lines
Diff to previous 1.69
testInterruptedFailingAcquire: add quiescence assertions

Revision 1.69 - (view) (download) (annotate) - [select for diffs]
Wed Aug 14 23:06:11 2019 UTC (4 years, 8 months ago) by jsr166
Branch: MAIN
Changes since 1.68: +50 -13 lines
Diff to previous 1.68
fix very rare race in testInterruptedFailingAcquire

Revision 1.68 - (view) (download) (annotate) - [select for diffs]
Tue Aug 13 23:05:18 2019 UTC (4 years, 8 months ago) by jsr166
Branch: MAIN
Changes since 1.67: +0 -1 lines
Diff to previous 1.67
fix imports

Revision 1.67 - (view) (download) (annotate) - [select for diffs]
Tue Aug 13 03:39:46 2019 UTC (4 years, 8 months ago) by jsr166
Branch: MAIN
Changes since 1.66: +1 -1 lines
Diff to previous 1.66
testInterruptedFailingAcquire: pleaseThrow should be volatile

Revision 1.66 - (view) (download) (annotate) - [select for diffs]
Tue Aug 13 00:54:51 2019 UTC (4 years, 8 months ago) by jsr166
Branch: MAIN
Changes since 1.65: +1 -1 lines
Diff to previous 1.65
use randomBoolean()

Revision 1.65 - (view) (download) (annotate) - [select for diffs]
Sun Jul 22 22:13:55 2018 UTC (5 years, 8 months ago) by jsr166
Branch: MAIN
Changes since 1.64: +1 -1 lines
Diff to previous 1.64
use standard variable name "success" in catch clauses

Revision 1.64 - (view) (download) (annotate) - [select for diffs]
Wed Jun 13 18:36:31 2018 UTC (5 years, 10 months ago) by jsr166
Branch: MAIN
Changes since 1.63: +4 -4 lines
Diff to previous 1.63
rename nanosTimeout to timeoutNanos

Revision 1.63 - (view) (download) (annotate) - [select for diffs]
Tue Jan 23 20:44:11 2018 UTC (6 years, 2 months ago) by jsr166
Branch: MAIN
Changes since 1.62: +1 -2 lines
Diff to previous 1.62
migrate from AssertionFailedError to AssertionError

Revision 1.62 - (view) (download) (annotate) - [select for diffs]
Sun Jan 7 23:05:44 2018 UTC (6 years, 3 months ago) by dl
Branch: MAIN
Changes since 1.61: +1 -2 lines
Diff to previous 1.61
Enable test

Revision 1.61 - (view) (download) (annotate) - [select for diffs]
Tue Nov 28 18:06:55 2017 UTC (6 years, 4 months ago) by jsr166
Branch: MAIN
Changes since 1.60: +1 -1 lines
Diff to previous 1.60
use DISABLED_ prefix for disabled tests

Revision 1.60 - (view) (download) (annotate) - [select for diffs]
Mon Nov 27 23:06:53 2017 UTC (6 years, 4 months ago) by jsr166
Branch: MAIN
Changes since 1.59: +62 -11 lines
Diff to previous 1.59
JDK-8191937: Lost interrupt in AbstractQueuedSynchronizer when tryAcquire methods throw

Revision 1.59 - (view) (download) (annotate) - [select for diffs]
Mon Nov 27 03:25:42 2017 UTC (6 years, 4 months ago) by jsr166
Branch: MAIN
Changes since 1.58: +52 -0 lines
Diff to previous 1.58
add disabled test for JDK-8191483: AbstractQueuedSynchronizer cancel/cancel race

Revision 1.58 - (view) (download) (annotate) - [select for diffs]
Fri Sep 29 19:34:37 2017 UTC (6 years, 6 months ago) by jsr166
Branch: MAIN
Changes since 1.57: +8 -3 lines
Diff to previous 1.57
improve code sample and corresponding test class

Revision 1.57 - (view) (download) (annotate) - [select for diffs]
Mon Jul 17 21:01:30 2017 UTC (6 years, 9 months ago) by jsr166
Branch: MAIN
Changes since 1.56: +1 -0 lines
Diff to previous 1.56
suppress [WaitNotInLoop] errorprone warning

Revision 1.56 - (view) (download) (annotate) - [select for diffs]
Sun May 14 02:24:10 2017 UTC (6 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.55: +1 -1 lines
Diff to previous 1.55
improve testTryAcquireSharedNanos

Revision 1.55 - (view) (download) (annotate) - [select for diffs]
Sun May 14 02:20:48 2017 UTC (6 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.54: +1 -1 lines
Diff to previous 1.54
improve testAcquireSharedInterruptibly

Revision 1.54 - (view) (download) (annotate) - [select for diffs]
Sun May 14 02:16:56 2017 UTC (6 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.53: +9 -9 lines
Diff to previous 1.53
improve testAwaitUninterruptibly

Revision 1.53 - (view) (download) (annotate) - [select for diffs]
Sun Jan 1 20:34:39 2017 UTC (7 years, 3 months ago) by jsr166
Branch: MAIN
Changes since 1.52: +3 -3 lines
Diff to previous 1.52
minor test hygiene improvements

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

Revision 1.51 - (view) (download) (annotate) - [select for diffs]
Fri Jul 3 01:56:38 2015 UTC (8 years, 9 months ago) by jsr166
Branch: MAIN
Changes since 1.50: +1 -0 lines
Diff to previous 1.50
add more assertions

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

Revision 1.49 - (view) (download) (annotate) - [select for diffs]
Sun Feb 22 04:34:44 2015 UTC (9 years, 1 month ago) by jsr166
Branch: MAIN
Changes since 1.48: +0 -1 lines
Diff to previous 1.48
unused variable cleanup

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

Revision 1.47 - (view) (download) (annotate) - [select for diffs]
Wed Dec 31 19:05:42 2014 UTC (9 years, 3 months ago) by jsr166
Branch: MAIN
Changes since 1.46: +8 -2 lines
Diff to previous 1.46
no wildcard imports

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

Revision 1.45 - (view) (download) (annotate) - [select for diffs]
Tue Dec 2 07:23:13 2014 UTC (9 years, 4 months ago) by jsr166
Branch: MAIN
Changes since 1.44: +25 -0 lines
Diff to previous 1.44
add testAwait_Zero testAwait_NegativeInfinity

Revision 1.44 - (view) (download) (annotate) - [select for diffs]
Thu May 2 18:01:09 2013 UTC (10 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.43: +11 -4 lines
Diff to previous 1.43
fix rare timeout failure with testTryAcquireSharedNanos_Timeout

Revision 1.43 - (view) (download) (annotate) - [select for diffs]
Fri Jan 18 04:23:28 2013 UTC (11 years, 3 months ago) by jsr166
Branch: MAIN
Changes since 1.42: +1 -1 lines
Diff to previous 1.42
use blessed modifier order

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

Revision 1.41 - (view) (download) (annotate) - [select for diffs]
Sat May 21 06:24:33 2011 UTC (12 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.40: +652 -470 lines
Diff to previous 1.40
various test improvements

Revision 1.40 - (view) (download) (annotate) - [select for diffs]
Fri May 6 16:43:45 2011 UTC (12 years, 11 months ago) by dl
Branch: MAIN
CVS Tags: release-1_7_0
Changes since 1.39: +54 -54 lines
Diff to previous 1.39
Add/use delay() instead of Thread.sleep to ensure sleeps are long enough

Revision 1.39 - (view) (download) (annotate) - [select for diffs]
Tue Mar 15 19:47:06 2011 UTC (13 years, 1 month ago) by jsr166
Branch: MAIN
Changes since 1.38: +1 -1 lines
Diff to previous 1.38
Update Creative Commons license URL in legal notices

Revision 1.38 - (view) (download) (annotate) - [select for diffs]
Tue Oct 19 00:43:49 2010 UTC (13 years, 6 months ago) by jsr166
Branch: MAIN
Changes since 1.37: +1 -1 lines
Diff to previous 1.37
whitespace

Revision 1.37 - (view) (download) (annotate) - [select for diffs]
Mon Oct 11 06:36:20 2010 UTC (13 years, 6 months ago) by jsr166
Branch: MAIN
Changes since 1.36: +1 -1 lines
Diff to previous 1.36
typos

Revision 1.36 - (view) (download) (annotate) - [select for diffs]
Sat Oct 9 19:30:34 2010 UTC (13 years, 6 months ago) by jsr166
Branch: MAIN
Changes since 1.35: +1 -1 lines
Diff to previous 1.35
whitespace

Revision 1.35 - (view) (download) (annotate) - [select for diffs]
Thu Sep 16 00:52:49 2010 UTC (13 years, 7 months ago) by jsr166
Branch: MAIN
Changes since 1.34: +16 -14 lines
Diff to previous 1.34
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.34 - (view) (download) (annotate) - [select for diffs]
Wed Aug 25 00:07:02 2010 UTC (13 years, 7 months ago) by jsr166
Branch: MAIN
Changes since 1.33: +1 -1 lines
Diff to previous 1.33
whitespace

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

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

Revision 1.31 - (view) (download) (annotate) - [select for diffs]
Sat Nov 21 17:54:04 2009 UTC (14 years, 5 months ago) by jsr166
Branch: MAIN
Changes since 1.30: +0 -3 lines
Diff to previous 1.30
remove dead test code

Revision 1.30 - (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.29: +2 -1 lines
Diff to previous 1.29
import static TimeUnit.MILLISECONDS

Revision 1.29 - (view) (download) (annotate) - [select for diffs]
Sat Nov 21 02:07:26 2009 UTC (14 years, 5 months ago) by jsr166
Branch: MAIN
Changes since 1.28: +93 -93 lines
Diff to previous 1.28
untabify

Revision 1.28 - (view) (download) (annotate) - [select for diffs]
Wed Nov 18 16:04:34 2009 UTC (14 years, 5 months ago) by jsr166
Branch: MAIN
Changes since 1.27: +143 -254 lines
Diff to previous 1.27
use CheckedRunnable

Revision 1.27 - (view) (download) (annotate) - [select for diffs]
Wed Nov 18 08:26:24 2009 UTC (14 years, 5 months ago) by jsr166
Branch: MAIN
Changes since 1.26: +2 -1 lines
Diff to previous 1.26
missing call to join

Revision 1.26 - (view) (download) (annotate) - [select for diffs]
Wed Nov 18 08:22:57 2009 UTC (14 years, 5 months ago) by jsr166
Branch: MAIN
Changes since 1.25: +335 -505 lines
Diff to previous 1.25
nicer exception handling

Revision 1.25 - (view) (download) (annotate) - [select for diffs]
Tue Nov 17 13:40:14 2009 UTC (14 years, 5 months ago) by jsr166
Branch: MAIN
Changes since 1.24: +6 -6 lines
Diff to previous 1.24
coding style

Revision 1.24 - (view) (download) (annotate) - [select for diffs]
Mon Nov 16 05:30:07 2009 UTC (14 years, 5 months ago) by jsr166
Branch: MAIN
Changes since 1.23: +27 -27 lines
Diff to previous 1.23
whitespace

Revision 1.23 - (view) (download) (annotate) - [select for diffs]
Mon Nov 16 04:57:09 2009 UTC (14 years, 5 months ago) by jsr166
Branch: MAIN
Changes since 1.22: +35 -35 lines
Diff to previous 1.22
whitespace

Revision 1.22 - (view) (download) (annotate) - [select for diffs]
Mon Nov 2 20:28:31 2009 UTC (14 years, 5 months ago) by jsr166
Branch: MAIN
Changes since 1.21: +73 -73 lines
Diff to previous 1.21
whitespace

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

Revision 1.20 - (view) (download) (annotate) - [select for diffs]
Fri Feb 24 00:03:16 2006 UTC (18 years, 1 month ago) by dl
Branch: MAIN
Changes since 1.19: +1 -0 lines
Diff to previous 1.19
Make Interruptible locking tests obey delay conventions

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

Revision 1.18 - (view) (download) (annotate) - [select for diffs]
Fri Jan 16 16:49:40 2004 UTC (20 years, 3 months ago) by dl
Branch: MAIN
CVS Tags: JSR166_PFD
Changes since 1.17: +2 -0 lines
Diff to previous 1.17
Fixed timing errors

Revision 1.17 - (view) (download) (annotate) - [select for diffs]
Mon Jan 12 16:37:40 2004 UTC (20 years, 3 months ago) by dl
Branch: MAIN
Changes since 1.16: +328 -237 lines
Diff to previous 1.16
Fix grammar, typos

Revision 1.16 - (view) (download) (annotate) - [select for diffs]
Sun Jan 11 16:02:33 2004 UTC (20 years, 3 months ago) by dl
Branch: MAIN
Changes since 1.15: +119 -114 lines
Diff to previous 1.15
Simplify/shorten AQS method names

Revision 1.15 - (view) (download) (annotate) - [select for diffs]
Sat Jan 10 20:37:20 2004 UTC (20 years, 3 months ago) by dl
Branch: MAIN
Changes since 1.14: +494 -9 lines
Diff to previous 1.14
Added tests

Revision 1.14 - (view) (download) (annotate) - [select for diffs]
Sat Jan 10 01:41:59 2004 UTC (20 years, 3 months ago) by dl
Branch: MAIN
Changes since 1.13: +37 -0 lines
Diff to previous 1.13
Test toString

Revision 1.13 - (view) (download) (annotate) - [select for diffs]
Fri Jan 9 15:39:10 2004 UTC (20 years, 3 months ago) by dl
Branch: MAIN
Changes since 1.12: +11 -11 lines
Diff to previous 1.12
Fix typos

Revision 1.12 - (view) (download) (annotate) - [select for diffs]
Fri Jan 9 14:45:58 2004 UTC (20 years, 3 months ago) by dl
Branch: MAIN
Changes since 1.11: +294 -102 lines
Diff to previous 1.11
Added tests

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

Revision 1.10 - (view) (download) (annotate) - [select for diffs]
Wed Jan 7 20:49:53 2004 UTC (20 years, 3 months ago) by dl
Branch: MAIN
Changes since 1.9: +34 -0 lines
Diff to previous 1.9
Add tests

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

Revision 1.8 - (view) (download) (annotate) - [select for diffs]
Sun Jan 4 00:57:21 2004 UTC (20 years, 3 months ago) by dl
Branch: MAIN
Changes since 1.7: +33 -1 lines
Diff to previous 1.7
added a few tests

Revision 1.7 - (view) (download) (annotate) - [select for diffs]
Fri Jan 2 21:06:38 2004 UTC (20 years, 3 months ago) by dl
Branch: MAIN
Changes since 1.6: +4 -4 lines
Diff to previous 1.6
Use new AQS methods

Revision 1.6 - (view) (download) (annotate) - [select for diffs]
Wed Dec 31 21:30:08 2003 UTC (20 years, 3 months ago) by dl
Branch: MAIN
Changes since 1.5: +9 -7 lines
Diff to previous 1.5
AQS API improvements

Revision 1.5 - (view) (download) (annotate) - [select for diffs]
Tue Dec 30 15:48:38 2003 UTC (20 years, 3 months ago) by dl
Branch: MAIN
Changes since 1.4: +5 -13 lines
Diff to previous 1.4
Avoid cache thrashing

Revision 1.4 - (view) (download) (annotate) - [select for diffs]
Mon Dec 29 19:05:40 2003 UTC (20 years, 3 months ago) by dl
Branch: MAIN
Changes since 1.3: +4 -4 lines
Diff to previous 1.3
spellcheck

Revision 1.3 - (view) (download) (annotate) - [select for diffs]
Mon Dec 29 14:19:27 2003 UTC (20 years, 3 months ago) by dl
Branch: MAIN
Changes since 1.2: +4 -4 lines
Diff to previous 1.2
Simplify AQS hook methods

Revision 1.2 - (view) (download) (annotate) - [select for diffs]
Mon Dec 29 01:18:40 2003 UTC (20 years, 3 months ago) by dl
Branch: MAIN
Changes since 1.1: +3 -1 lines
Diff to previous 1.1
Test example matches AQS doc example

Revision 1.1 - (view) (download) (annotate) - [select for diffs]
Sun Dec 28 21:56:18 2003 UTC (20 years, 3 months ago) by dl
Branch: MAIN
Add tests for AQS extensions; adjust others for protected condition methods

Convenience Links

Links to HEAD: (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