ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/SynchronousQueueTest.java
Revision 1.69 - (view) (download) (annotate) - [select for diffs]
Wed Jan 27 01:57:24 2021 UTC (3 years, 3 months ago) by jsr166
Branch: MAIN
CVS Tags: HEAD
Changes since 1.68: +37 -37 lines
Diff to previous 1.68
use diamond <> pervasively

Revision 1.68 - (view) (download) (annotate) - [select for diffs]
Tue Jan 26 13:33:06 2021 UTC (3 years, 3 months ago) by dl
Branch: MAIN
Changes since 1.67: +86 -86 lines
Diff to previous 1.67
Replace Integer with Item class

Revision 1.67 - (view) (download) (annotate) - [select for diffs]
Mon Dec 16 22:55:54 2019 UTC (4 years, 4 months ago) by jsr166
Branch: MAIN
Changes since 1.66: +1 -1 lines
Diff to previous 1.66
fix a few [UnusedVariable] warnings

Revision 1.66 - (view) (download) (annotate) - [select for diffs]
Thu Sep 5 20:54:24 2019 UTC (4 years, 7 months ago) by jsr166
Branch: MAIN
Changes since 1.65: +1 -3 lines
Diff to previous 1.65
testTimedOffer: rely on awaitTermination together with LONGER_DELAY_MS

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

Revision 1.64 - (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.63: +3 -3 lines
Diff to previous 1.63
use randomBoolean()

Revision 1.63 - (view) (download) (annotate) - [select for diffs]
Sun Aug 11 22:29:27 2019 UTC (4 years, 8 months ago) by jsr166
Branch: MAIN
Changes since 1.62: +10 -7 lines
Diff to previous 1.62
more assertions; more interleavings

Revision 1.62 - (view) (download) (annotate) - [select for diffs]
Fri Jun 22 00:04:58 2018 UTC (5 years, 10 months ago) by jsr166
Branch: MAIN
Changes since 1.61: +1 -1 lines
Diff to previous 1.61
sync upstream changes

Revision 1.61 - (view) (download) (annotate) - [select for diffs]
Fri Aug 4 03:30:21 2017 UTC (6 years, 8 months ago) by jsr166
Branch: MAIN
Changes since 1.60: +1 -1 lines
Diff to previous 1.60
improve javadoc wording for testSerialization methods

Revision 1.60 - (view) (download) (annotate) - [select for diffs]
Mon May 29 22:44:27 2017 UTC (6 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.59: +2 -2 lines
Diff to previous 1.59
more timeout handling rework; remove most uses of MEDIUM_DELAY_MS; randomize timeouts and TimeUnits; write out IAE and ISE

Revision 1.59 - (view) (download) (annotate) - [select for diffs]
Sun May 14 04:14:10 2017 UTC (6 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.58: +8 -0 lines
Diff to previous 1.58
improve testTimedOffer

Revision 1.58 - (view) (download) (annotate) - [select for diffs]
Sun May 14 04:02:06 2017 UTC (6 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.57: +7 -0 lines
Diff to previous 1.57
improve testPutWithTake

Revision 1.57 - (view) (download) (annotate) - [select for diffs]
Sun May 14 03:48:35 2017 UTC (6 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.56: +8 -10 lines
Diff to previous 1.56
switch to randomized fairness for tests that block

Revision 1.56 - (view) (download) (annotate) - [select for diffs]
Sun May 14 00:56:43 2017 UTC (6 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.55: +1 -0 lines
Diff to previous 1.55
add interrupt status assertions

Revision 1.55 - (view) (download) (annotate) - [select for diffs]
Sat May 13 22:38:09 2017 UTC (6 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.54: +1 -1 lines
Diff to previous 1.54
claw back some millis using assertThreadBlocks

Revision 1.54 - (view) (download) (annotate) - [select for diffs]
Sat May 13 22:17:12 2017 UTC (6 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.53: +2 -2 lines
Diff to previous 1.53
claw back some millis using assertThreadBlocks

Revision 1.53 - (view) (download) (annotate) - [select for diffs]
Sat May 13 21:52:59 2017 UTC (6 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.52: +1 -1 lines
Diff to previous 1.52
claw back some millis using assertThreadBlocks

Revision 1.52 - (view) (download) (annotate) - [select for diffs]
Sat Mar 18 20:42:20 2017 UTC (7 years, 1 month ago) by jsr166
Branch: MAIN
Changes since 1.51: +1 -1 lines
Diff to previous 1.51
better assertion style

Revision 1.51 - (view) (download) (annotate) - [select for diffs]
Wed Jan 4 06:09:58 2017 UTC (7 years, 3 months ago) by jsr166
Branch: MAIN
Changes since 1.50: +1 -2 lines
Diff to previous 1.50
convert to Diamond

Revision 1.50 - (view) (download) (annotate) - [select for diffs]
Thu Oct 8 00:26:16 2015 UTC (8 years, 6 months ago) by jsr166
Branch: MAIN
Changes since 1.49: +3 -2 lines
Diff to previous 1.49
bump up timeouts

Revision 1.49 - (view) (download) (annotate) - [select for diffs]
Sun Oct 4 18:28:51 2015 UTC (8 years, 6 months ago) by jsr166
Branch: MAIN
Changes since 1.48: +32 -32 lines
Diff to previous 1.48
PoolCleaning

Revision 1.48 - (view) (download) (annotate) - [select for diffs]
Wed Jun 10 07:10:50 2015 UTC (8 years, 10 months ago) by jsr166
Branch: MAIN
Changes since 1.47: +5 -3 lines
Diff to previous 1.47
testDrainToN: replace flaky short sleep with retry loop

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

Revision 1.46 - (view) (download) (annotate) - [select for diffs]
Sat Jan 17 22:55:06 2015 UTC (9 years, 3 months ago) by jsr166
Branch: MAIN
Changes since 1.45: +1 -7 lines
Diff to previous 1.45
add more tests of exhausted iterators

Revision 1.45 - (view) (download) (annotate) - [select for diffs]
Wed Dec 31 20:29:13 2014 UTC (9 years, 4 months ago) by jsr166
Branch: MAIN
Changes since 1.44: +1 -1 lines
Diff to previous 1.44
coding style

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

Revision 1.43 - (view) (download) (annotate) - [select for diffs]
Wed Dec 31 16:44:02 2014 UTC (9 years, 4 months ago) by jsr166
Branch: MAIN
Changes since 1.42: +0 -1 lines
Diff to previous 1.42
remove unused imports

Revision 1.42 - (view) (download) (annotate) - [select for diffs]
Sun Nov 23 22:27:06 2014 UTC (9 years, 5 months ago) by jsr166
Branch: MAIN
Changes since 1.41: +9 -0 lines
Diff to previous 1.41
add tests for contains(null), remove(null)

Revision 1.41 - (view) (download) (annotate) - [select for diffs]
Thu Dec 8 19:09:58 2011 UTC (12 years, 4 months ago) by jsr166
Branch: MAIN
Changes since 1.40: +2 -2 lines
Diff to previous 1.40
whitespace; no assert statements in tests

Revision 1.40 - (view) (download) (annotate) - [select for diffs]
Thu Dec 8 19:05:42 2011 UTC (12 years, 4 months ago) by jsr166
Branch: MAIN
Changes since 1.39: +36 -17 lines
Diff to previous 1.39
improve testToArray2, testSerialization

Revision 1.39 - (view) (download) (annotate) - [select for diffs]
Fri Jul 15 18:49:31 2011 UTC (12 years, 9 months ago) by jsr166
Branch: MAIN
Changes since 1.38: +0 -11 lines
Diff to previous 1.38
Robust weak consistency for ArrayBlockingQueue iterators

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

Revision 1.37 - (view) (download) (annotate) - [select for diffs]
Mon May 30 22:43:20 2011 UTC (12 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.36: +10 -118 lines
Diff to previous 1.36
refactor more generic BlockingQueue tests into BlockingQueueTest.java

Revision 1.36 - (view) (download) (annotate) - [select for diffs]
Sat May 28 13:40:20 2011 UTC (12 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.35: +191 -111 lines
Diff to previous 1.35
various test case improvements

Revision 1.35 - (view) (download) (annotate) - [select for diffs]
Fri May 27 20:07:24 2011 UTC (12 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.34: +85 -181 lines
Diff to previous 1.34
performance and robustness improvements to queue tests

Revision 1.34 - (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.33: +6 -8 lines
Diff to previous 1.33
various test improvements

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

Revision 1.32 - (view) (download) (annotate) - [select for diffs]
Thu Apr 14 22:55:08 2011 UTC (13 years ago) by jsr166
Branch: MAIN
Changes since 1.31: +1 -1 lines
Diff to previous 1.31
whitespace

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

Revision 1.30 - (view) (download) (annotate) - [select for diffs]
Thu Nov 18 22:59:15 2010 UTC (13 years, 5 months ago) by jsr166
Branch: MAIN
Changes since 1.29: +1 -1 lines
Diff to previous 1.29
whitespace

Revision 1.29 - (view) (download) (annotate) - [select for diffs]
Thu Nov 18 20:18:43 2010 UTC (13 years, 5 months ago) by jsr166
Branch: MAIN
Changes since 1.28: +92 -66 lines
Diff to previous 1.28
various improvements

Revision 1.28 - (view) (download) (annotate) - [select for diffs]
Thu Oct 28 22:20:47 2010 UTC (13 years, 6 months ago) by jsr166
Branch: MAIN
Changes since 1.27: +2 -2 lines
Diff to previous 1.27
typo

Revision 1.27 - (view) (download) (annotate) - [select for diffs]
Thu Oct 28 17:57:26 2010 UTC (13 years, 6 months ago) by jsr166
Branch: MAIN
Changes since 1.26: +0 -18 lines
Diff to previous 1.26
refactor testTakeFromEmpty into BlockingQueueTest

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

Revision 1.25 - (view) (download) (annotate) - [select for diffs]
Wed Oct 6 07:49:23 2010 UTC (13 years, 6 months ago) by jsr166
Branch: MAIN
Changes since 1.24: +15 -24 lines
Diff to previous 1.24
start of a big refactoring, with only one test refactored: testTimedPollWithOffer

Revision 1.24 - (view) (download) (annotate) - [select for diffs]
Wed Sep 29 12:33:48 2010 UTC (13 years, 7 months ago) by dl
Branch: MAIN
Changes since 1.23: +4 -4 lines
Diff to previous 1.23
Allow InterruptedException during initial checks in *TimedPollWithOffer

Revision 1.23 - (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.22: +4 -4 lines
Diff to previous 1.22
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.22 - (view) (download) (annotate) - [select for diffs]
Wed Aug 25 01:44:48 2010 UTC (13 years, 8 months ago) by jsr166
Branch: MAIN
Changes since 1.21: +1 -0 lines
Diff to previous 1.21
whitespace

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

Revision 1.20 - (view) (download) (annotate) - [select for diffs]
Tue Dec 1 09:48:12 2009 UTC (14 years, 5 months ago) by jsr166
Branch: MAIN
Changes since 1.19: +0 -1 lines
Diff to previous 1.19
whitespace

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

Revision 1.18 - (view) (download) (annotate) - [select for diffs]
Sun Nov 22 18:57:17 2009 UTC (14 years, 5 months ago) by jsr166
Branch: MAIN
Changes since 1.17: +1 -1 lines
Diff to previous 1.17
use autoboxing judiciously for readability

Revision 1.17 - (view) (download) (annotate) - [select for diffs]
Sat Nov 21 22:00:46 2009 UTC (14 years, 5 months ago) by jsr166
Branch: MAIN
Changes since 1.16: +1 -1 lines
Diff to previous 1.16
reduce scope of check for IE in testTimedOffer*

Revision 1.16 - (view) (download) (annotate) - [select for diffs]
Sat Nov 21 21:00:34 2009 UTC (14 years, 5 months ago) by jsr166
Branch: MAIN
Changes since 1.15: +5 -7 lines
Diff to previous 1.15
reduce scope of check for IE in test*WithOffer*

Revision 1.15 - (view) (download) (annotate) - [select for diffs]
Sat Nov 21 19:11:53 2009 UTC (14 years, 5 months ago) by jsr166
Branch: MAIN
Changes since 1.14: +1 -1 lines
Diff to previous 1.14
reduce scope of check for IE in testInterruptedTimedPoll*

Revision 1.14 - (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.13: +53 -53 lines
Diff to previous 1.13
untabify

Revision 1.13 - (view) (download) (annotate) - [select for diffs]
Thu Nov 19 01:15:42 2009 UTC (14 years, 5 months ago) by jsr166
Branch: MAIN
Changes since 1.12: +253 -405 lines
Diff to previous 1.12
better exception handling

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

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

Revision 1.10 - (view) (download) (annotate) - [select for diffs]
Mon Nov 2 20:28:32 2009 UTC (14 years, 6 months ago) by jsr166
Branch: MAIN
Changes since 1.9: +49 -49 lines
Diff to previous 1.9
whitespace

Revision 1.9 - (view) (download) (annotate) - [select for diffs]
Mon Aug 1 19:54:04 2005 UTC (18 years, 9 months ago) by dl
Branch: MAIN
Changes since 1.8: +1 -0 lines
Diff to previous 1.8
commit old changes

Revision 1.8 - (view) (download) (annotate) - [select for diffs]
Sun Feb 15 00:27:45 2004 UTC (20 years, 2 months ago) by dl
Branch: MAIN
CVS Tags: JSR166_PFD
Changes since 1.7: +172 -0 lines
Diff to previous 1.7
Test SynchronousQueue in fair mode

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

Revision 1.6 - (view) (download) (annotate) - [select for diffs]
Sun Oct 5 23:00:40 2003 UTC (20 years, 7 months ago) by dl
Branch: MAIN
CVS Tags: JSR166_DEC9_POST_ES_SUBMIT, JSR166_DEC9_PRE_ES_SUBMIT, JSR166_NOV3_FREEZE
Changes since 1.5: +167 -0 lines
Diff to previous 1.5
Added tests and documentation

Revision 1.5 - (view) (download) (annotate) - [select for diffs]
Thu Sep 25 11:02:41 2003 UTC (20 years, 7 months ago) by dl
Branch: MAIN
Changes since 1.4: +52 -52 lines
Diff to previous 1.4
improve tck javadocs; rename and add a few tests

Revision 1.4 - (view) (download) (annotate) - [select for diffs]
Sat Sep 20 18:20:08 2003 UTC (20 years, 7 months ago) by dl
Branch: MAIN
Changes since 1.3: +158 -59 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, 7 months ago) by dl
Branch: MAIN
Changes since 1.2: +29 -38 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, 7 months ago) by dl
Branch: MAIN
Changes since 1.1: +21 -1 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)

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