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

Comparing jsr166/src/main/java/util/concurrent/ForkJoinPool.java (file contents):
Revision 1.382 by dl, Mon Nov 2 12:14:33 2020 UTC vs.
Revision 1.383 by dl, Mon Nov 9 14:10:36 2020 UTC

# Line 1757 | Line 1757 | public class ForkJoinPool extends Abstra
1757                  }
1758                  return -1;                        // retry
1759              }
1760 <            else if (active - minActive > 1) {    // reduce parallelism
1760 >            else if (active > minActive) {        // reduce parallelism
1761                  long nc = ((RC_MASK & (c - RC_UNIT)) | (~RC_MASK & c));
1762                  return compareAndSetCtl(c, nc) ? UNCOMPENSATE : -1;
1763              }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines