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

Comparing jsr166/src/test/loops/TSPExchangerTest.java (file contents):
Revision 1.14 by jsr166, Tue Feb 21 01:54:03 2012 UTC vs.
Revision 1.17 by jsr166, Fri Jan 2 16:57:15 2015 UTC

# Line 39 | Line 39 | public class TSPExchangerTest {
39      static final int NCPUS = Runtime.getRuntime().availableProcessors();
40  
41      /** Runs start with two threads, increasing by two through max */
42 <    static final int DEFAULT_MAX_THREADS  = Math.max(4, NCPUS + NCPUS/2);
42 >    static final int DEFAULT_MAX_THREADS = Math.max(4, NCPUS + NCPUS/2);
43  
44      /** The number of replication runs per thread value */
45      static final int DEFAULT_REPLICATIONS = 3;
# Line 362 | Line 362 | public class TSPExchangerTest {
362      }
363  
364      /**
365 <     * A Subpop maintains a set of chromosomes..
365 >     * A Subpop maintains a set of chromosomes.
366       */
367      static final class Subpop {
368          /** The chromosomes, kept in sorted order */
# Line 406 | Line 406 | public class TSPExchangerTest {
406           * other.  It is hardwired because small variations of it
407           * don't matter much.
408           *
409 <         * @param g the first generation to run.
409 >         * @param g the first generation to run
410           */
411          int runUpdates() throws InterruptedException {
412              int n = 1 + (rng.next() & ((subpopSize << 1) - 1));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines