ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/jtreg/util/Collections/RacingCollections.java
(Generate patch)

Comparing jsr166/src/test/jtreg/util/Collections/RacingCollections.java (file contents):
Revision 1.5 by jsr166, Tue Dec 6 04:37:55 2011 UTC vs.
Revision 1.6 by jsr166, Wed Feb 18 21:02:11 2015 UTC

# Line 158 | Line 158 | public class RacingCollections {
158              quittingTime = System.nanoTime() + workTimeMillis * 1024 * 1024;
159          }
160          boolean keepGoing() {
161 <            return (i++ % 128 != 0) || (System.nanoTime() < quittingTime);
161 >            return (i++ % 128 != 0) || (System.nanoTime() - quittingTime < 0);
162          }
163      }
164  
# Line 235 | Line 235 | public class RacingCollections {
235      private static List<Queue<Integer>> newConcurrentQueues() {
236          List<Queue<Integer>> list =
237              new ArrayList<Queue<Integer>>(newConcurrentDeques());
238 +        list.add(new ArrayBlockingQueue<Integer>(10));
239          list.add(new LinkedBlockingQueue<Integer>(10));
240          list.add(new LinkedTransferQueue<Integer>());
241          list.add(new ConcurrentLinkedQueue<Integer>());

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines