ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/ThreadPoolExecutor.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/ThreadPoolExecutor.java (file contents):
Revision 1.125 by dl, Wed Sep 21 13:52:48 2011 UTC vs.
Revision 1.126 by dl, Thu Sep 22 23:25:59 2011 UTC

# Line 1522 | Line 1522 | public class ThreadPoolExecutor extends
1522       */
1523      void ensurePrestart() {
1524          int wc = workerCountOf(ctl.get());
1525 <        if (wc == 0)
1526 <            addWorker(null, false);
1527 <        else if (wc < corePoolSize)
1525 >        if (wc < corePoolSize)
1526              addWorker(null, true);
1527 +        else if (wc == 0)
1528 +            addWorker(null, false);
1529      }
1530  
1531      /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines