ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/loops/OfferPollLoops.java
(Generate patch)

Comparing jsr166/src/test/loops/OfferPollLoops.java (file contents):
Revision 1.2 by jsr166, Thu Oct 29 23:09:07 2009 UTC vs.
Revision 1.4 by dl, Sun Sep 19 12:55:37 2010 UTC

# Line 103 | Line 103 | public class OfferPollLoops {
103  
104          Thread.sleep(100); // System.gc();
105          if (print)
106 +            System.out.print("ConcurrentLinkedDeque   ");
107 +        oneRun(new ConcurrentLinkedDeque<Integer>(), n, iters);
108 +
109 +        Thread.sleep(100); // System.gc();
110 +        if (print)
111              System.out.print("LinkedBlockingQueue     ");
112          oneRun(new LinkedBlockingQueue<Integer>(), n, iters);
113  
# Line 139 | Line 144 | public class OfferPollLoops {
144          final Queue<Integer> queue;
145          final CyclicBarrier barrier;
146          final Phaser lagPhaser;
147 <        Stage (Queue<Integer> q, CyclicBarrier b, Phaser s,
143 <               int iters) {
147 >        Stage(Queue<Integer> q, CyclicBarrier b, Phaser s, int iters) {
148              queue = q;
149              barrier = b;
150              lagPhaser = s;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines