ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/AbstractQueuedLongSynchronizerTest.java
Revision 1.53 - (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.52: +16 -2 lines
Diff to previous 1.52
check that try-acquire methods can are not called again if they fail once

Revision 1.52 - (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.51: +3 -1 lines
Diff to previous 1.51
testInterruptedFailingAcquire: add hasContended assertions

Revision 1.51 - (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.50: +25 -14 lines
Diff to previous 1.50
testInterruptedFailingAcquire: test interruptible acquire methods

Revision 1.50 - (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.49: +6 -0 lines
Diff to previous 1.49
testInterruptedFailingAcquire: add quiescence assertions

Revision 1.49 - (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.48: +50 -13 lines
Diff to previous 1.48
fix very rare race in testInterruptedFailingAcquire

Revision 1.48 - (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.47: +0 -1 lines
Diff to previous 1.47
fix imports

Revision 1.47 - (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.46: +1 -1 lines
Diff to previous 1.46
testInterruptedFailingAcquire: pleaseThrow should be volatile

Revision 1.46 - (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.45: +1 -1 lines
Diff to previous 1.45
use randomBoolean()

Revision 1.45 - (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.44: +4 -4 lines
Diff to previous 1.44
rename nanosTimeout to timeoutNanos

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

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

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

Revision 1.41 - (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.40: +1 -0 lines
Diff to previous 1.40
suppress [WaitNotInLoop] errorprone warning

Revision 1.40 - (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.39: +1 -1 lines
Diff to previous 1.39
improve testTryAcquireSharedNanos

Revision 1.39 - (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.38: +1 -1 lines
Diff to previous 1.38
improve testAcquireSharedInterruptibly

Revision 1.38 - (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.37: +9 -9 lines
Diff to previous 1.37
improve testAwaitUninterruptibly

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

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

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

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

Revision 1.33 - (view) (download) (annotate) - [select for diffs]
Tue Apr 21 04:48:11 2015 UTC (9 years ago) by jsr166
Branch: MAIN
Changes since 1.32: +1 -1 lines
Diff to previous 1.32
fix non-sensical 1 << 62 to intended 1L << 62

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

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

Revision 1.30 - (view) (download) (annotate) - [select for diffs]
Wed Dec 31 19:23:56 2014 UTC (9 years, 4 months ago) by jsr166
Branch: MAIN
Changes since 1.29: +1 -1 lines
Diff to previous 1.29
remove stray semicolon

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

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

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

Revision 1.26 - (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.25: +1 -1 lines
Diff to previous 1.25
use blessed modifier order

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

Revision 1.24 - (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.23: +650 -474 lines
Diff to previous 1.23
various test improvements

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

Revision 1.22 - (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.21: +1 -1 lines
Diff to previous 1.21
Update Creative Commons license URL in legal notices

Revision 1.21 - (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.20: +1 -1 lines
Diff to previous 1.20
whitespace

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

Revision 1.19 - (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.18: +1 -1 lines
Diff to previous 1.18
typos

Revision 1.18 - (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.17: +1 -1 lines
Diff to previous 1.17
whitespace

Revision 1.17 - (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.16: +17 -14 lines
Diff to previous 1.16
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.16 - (view) (download) (annotate) - [select for diffs]
Wed Aug 25 00:07:02 2010 UTC (13 years, 8 months ago) by jsr166
Branch: MAIN
Changes since 1.15: +1 -1 lines
Diff to previous 1.15
whitespace

Revision 1.15 - (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.14: +14 -10 lines
Diff to previous 1.14
Use MILLISECONDS.toNanos instead of multiplying by 1000*1000; use explicit assertEquals instead of assertTrue(...!= null); improve testPutWithTake

Revision 1.14 - (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.13: +8 -6 lines
Diff to previous 1.13
replace absolute waits with _DELAY_MS; 1000 => 1000L; short delay after starting a thread before interrupting it

Revision 1.13 - (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.12: +0 -3 lines
Diff to previous 1.12
remove dead test code

Revision 1.12 - (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.11: +2 -1 lines
Diff to previous 1.11
import static TimeUnit.MILLISECONDS

Revision 1.11 - (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.10: +93 -93 lines
Diff to previous 1.10
untabify

Revision 1.10 - (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.9: +140 -255 lines
Diff to previous 1.9
use CheckedRunnable

Revision 1.9 - (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.8: +317 -483 lines
Diff to previous 1.8
nicer exception handling

Revision 1.8 - (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.7: +14 -14 lines
Diff to previous 1.7
coding style

Revision 1.7 - (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.6: +27 -27 lines
Diff to previous 1.6
whitespace

Revision 1.6 - (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.5: +35 -35 lines
Diff to previous 1.5
whitespace

Revision 1.5 - (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.4: +74 -74 lines
Diff to previous 1.4
whitespace

Revision 1.4 - (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.3: +1 -0 lines
Diff to previous 1.3
Add sleeps after interrupts to force ordering

Revision 1.3 - (view) (download) (annotate) - [select for diffs]
Wed Apr 5 11:24:55 2006 UTC (18 years, 1 month ago) by dl
Branch: MAIN
Changes since 1.2: +1 -0 lines
Diff to previous 1.2
Make acquireInterruptibly  consistent with AQS

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

Revision 1.1 - (view) (download) (annotate) - [select for diffs]
Tue Mar 1 01:32:00 2005 UTC (19 years, 2 months ago) by dl
Branch: MAIN
Add tests for new AQLS class

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