test/java/util/concurrent/ConcurrentQueues/IteratorWeakConsistency.java

Print this page

        

*** 51,61 **** test(new ConcurrentLinkedDeque()); test(new ConcurrentLinkedQueue()); test(new LinkedTransferQueue()); // Other concurrent queues (e.g. ArrayBlockingQueue) do not // currently have weakly consistent iterators. ! // test(new ArrayBlockingQueue(20)); } void test(Queue q) { // TODO: make this more general try { --- 51,63 ---- test(new ConcurrentLinkedDeque()); test(new ConcurrentLinkedQueue()); test(new LinkedTransferQueue()); // Other concurrent queues (e.g. ArrayBlockingQueue) do not // currently have weakly consistent iterators. ! // As of 2010-09, ArrayBlockingQueue passes this test, but ! // does not fully implement weak consistency. ! test(new ArrayBlockingQueue(20)); } void test(Queue q) { // TODO: make this more general try {