|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ConcurrentLinkedQueue | Line # 58 | 100 | 56 | 83.9% |
0.8388889
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ConcurrentLinkedQueue.Node | Line # 82 | 15 | 10 | 70.4% |
0.7037037
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ConcurrentLinkedQueue.Itr | Line # 380 | 24 | 10 | 84.6% |
0.84615386
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ConcurrentLinkedQueue.SerializableLock | Line # 492 | 0 | 0 | - |
-1.0
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
| (36) | |||
| Result | |||
|
0.5487805
|
ConcurrentLinkedQueueTest.testRetainAll
ConcurrentLinkedQueueTest.testRetainAll
|
1 PASS | |
|
0.5487805
|
ConcurrentLinkedQueueTest.testRemoveAll
ConcurrentLinkedQueueTest.testRemoveAll
|
1 PASS | |
|
0.46747968
|
ConcurrentLinkedQueueTest.testToArray
ConcurrentLinkedQueueTest.testToArray
|
1 PASS | |
|
0.46747968
|
ConcurrentLinkedQueueTest.testToArray2
ConcurrentLinkedQueueTest.testToArray2
|
1 PASS | |
|
0.44715446
|
ConcurrentLinkedQueueTest.testWeaklyConsistentIteration
ConcurrentLinkedQueueTest.testWeaklyConsistentIteration
|
1 PASS | |
|
0.43495935
|
ConcurrentLinkedQueueTest.testSerialization
ConcurrentLinkedQueueTest.testSerialization
|
1 PASS | |
|
0.42682928
|
ConcurrentLinkedQueueTest.testContainsAll
ConcurrentLinkedQueueTest.testContainsAll
|
1 PASS | |
|
0.41869918
|
ConcurrentLinkedQueueTest.testPeek
ConcurrentLinkedQueueTest.testPeek
|
1 PASS | |
|
0.41869918
|
ConcurrentLinkedQueueTest.testElement
ConcurrentLinkedQueueTest.testElement
|
1 PASS | |
|
0.4105691
|
ConcurrentLinkedQueueTest.testIterator
ConcurrentLinkedQueueTest.testIterator
|
1 PASS | |
|
0.398374
|
ConcurrentLinkedQueueTest.testContains
ConcurrentLinkedQueueTest.testContains
|
1 PASS | |
|
0.37804878
|
ConcurrentLinkedQueueTest.testIteratorRemove
ConcurrentLinkedQueueTest.testIteratorRemove
|
1 PASS | |
|
0.37398374
|
ConcurrentLinkedQueueTest.testClear
ConcurrentLinkedQueueTest.testClear
|
1 PASS | |
|
0.3699187
|
ConcurrentLinkedQueueTest.testToString
ConcurrentLinkedQueueTest.testToString
|
1 PASS | |
|
0.36585367
|
ConcurrentLinkedQueueTest.testRemove
ConcurrentLinkedQueueTest.testRemove
|
1 PASS | |
|
0.36585367
|
ConcurrentLinkedQueueTest.testPoll
ConcurrentLinkedQueueTest.testPoll
|
1 PASS | |
|
0.35772356
|
ConcurrentLinkedQueueTest.testSize
ConcurrentLinkedQueueTest.testSize
|
1 PASS | |
|
0.35365853
|
ConcurrentLinkedQueueTest.testRemoveElement
ConcurrentLinkedQueueTest.testRemoveElement
|
1 PASS | |
|
0.35365853
|
ConcurrentLinkedQueueTest.testToArray1_BadArg
ConcurrentLinkedQueueTest.testToArray1_BadArg
|
1 PASS | |
|
0.31707317
|
ConcurrentLinkedQueueTest.testEmpty
ConcurrentLinkedQueueTest.testEmpty
|
1 PASS | |
|
0.31300813
|
ConcurrentLinkedQueueTest.testIteratorOrdering
ConcurrentLinkedQueueTest.testIteratorOrdering
|
1 PASS | |
|
0.2601626
|
ConcurrentLinkedQueueTest.testConstructor6
ConcurrentLinkedQueueTest.testConstructor6
|
1 PASS | |
|
0.25203252
|
ConcurrentLinkedQueueTest.testAddAllSelf
ConcurrentLinkedQueueTest.testAddAllSelf
|
1 PASS | |
|
0.25203252
|
ConcurrentLinkedQueueTest.testToArray_BadArg
ConcurrentLinkedQueueTest.testToArray_BadArg
|
1 PASS | |
|
0.25203252
|
ConcurrentLinkedQueueTest.testAdd
ConcurrentLinkedQueueTest.testAdd
|
1 PASS | |
|
0.24390244
|
ConcurrentLinkedQueueTest.testAddAll5
ConcurrentLinkedQueueTest.testAddAll5
|
1 PASS | |
|
0.15853658
|
ConcurrentLinkedQueueTest.testConstructor5
ConcurrentLinkedQueueTest.testConstructor5
|
1 PASS | |
|
0.14634146
|
ConcurrentLinkedQueueTest.testAddAll3
ConcurrentLinkedQueueTest.testAddAll3
|
1 PASS | |
|
0.1300813
|
ConcurrentLinkedQueueTest.testOffer
ConcurrentLinkedQueueTest.testOffer
|
1 PASS | |
|
0.093495935
|
ConcurrentLinkedQueueTest.testConstructor1
ConcurrentLinkedQueueTest.testConstructor1
|
1 PASS | |
|
0.05284553
|
ConcurrentLinkedQueueTest.testConstructor4
ConcurrentLinkedQueueTest.testConstructor4
|
1 PASS | |
|
0.040650405
|
ConcurrentLinkedQueueTest.testAddAll2
ConcurrentLinkedQueueTest.testAddAll2
|
1 PASS | |
|
0.040650405
|
ConcurrentLinkedQueueTest.testAddNull
ConcurrentLinkedQueueTest.testAddNull
|
1 PASS | |
|
0.032520324
|
ConcurrentLinkedQueueTest.testOfferNull
ConcurrentLinkedQueueTest.testOfferNull
|
1 PASS | |
|
0.020325202
|
ConcurrentLinkedQueueTest.testConstructor3
ConcurrentLinkedQueueTest.testConstructor3
|
1 PASS | |
|
0.016260162
|
ConcurrentLinkedQueueTest.testAddAll1
ConcurrentLinkedQueueTest.testAddAll1
|
1 PASS | |
| 1 | /* | |
| 2 | * Written by Doug Lea with assistance from members of JCP JSR-166 | |
| 3 | * Expert Group and released to the public domain, as explained at | |
| 4 | * http://creativecommons.org/licenses/publicdomain | |
| 5 | */ | |
| 6 | ||
| 7 | package edu.emory.mathcs.backport.java.util.concurrent; | |
| 8 | import edu.emory.mathcs.backport.java.util.*; | |
| 9 | import java.io.*; | |
| 10 | import java.util.Collection; | |
| 11 | import java.util.Iterator; | |
| 12 | import java.util.NoSuchElementException; | |
| 13 | ||
| 14 | ||
| 15 | /** | |
| 16 | * An unbounded thread-safe {@linkplain Queue queue} based on linked nodes. | |
| 17 | * This queue orders elements FIFO (first-in-first-out). | |
| 18 | * The <em>head</em> of the queue is that element that has been on the | |
| 19 | * queue the longest time. | |
| 20 | * The <em>tail</em> of the queue is that element that has been on the | |
| 21 | * queue the shortest time. New elements | |
| 22 | * are inserted at the tail of the queue, and the queue retrieval | |
| 23 | * operations obtain elements at the head of the queue. | |
| 24 | * A <tt>ConcurrentLinkedQueue</tt> is an appropriate choice when | |
| 25 | * many threads will share access to a common collection. | |
| 26 | * This queue does not permit <tt>null</tt> elements. | |
| 27 | * | |
| 28 | * <p>This implementation employs an efficient "wait-free" | |
| 29 | * algorithm based on one described in <a | |
| 30 | ||