--- jsr166/src/test/loops/OfferPollLoops.java 2009/10/29 23:09:07 1.2 +++ jsr166/src/test/loops/OfferPollLoops.java 2011/03/15 19:47:05 1.6 @@ -1,7 +1,7 @@ /* * Written by Doug Lea with assistance from members of JCP JSR-166 * Expert Group and released to the public domain, as explained at - * http://creativecommons.org/licenses/publicdomain + * http://creativecommons.org/publicdomain/zero/1.0/ */ import java.util.*; @@ -103,6 +103,11 @@ public class OfferPollLoops { Thread.sleep(100); // System.gc(); if (print) + System.out.print("ConcurrentLinkedDeque "); + oneRun(new ConcurrentLinkedDeque(), n, iters); + + Thread.sleep(100); // System.gc(); + if (print) System.out.print("LinkedBlockingQueue "); oneRun(new LinkedBlockingQueue(), n, iters); @@ -134,13 +139,12 @@ public class OfferPollLoops { } - static abstract class Stage implements Runnable { + abstract static class Stage implements Runnable { final int iters; final Queue queue; final CyclicBarrier barrier; final Phaser lagPhaser; - Stage (Queue q, CyclicBarrier b, Phaser s, - int iters) { + Stage(Queue q, CyclicBarrier b, Phaser s, int iters) { queue = q; barrier = b; lagPhaser = s;