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.407 by dl, Mon Apr 4 12:02:41 2022 UTC vs.
Revision 1.408 by dl, Thu Apr 7 22:42:58 2022 UTC

# Line 137 | Line 137 | import jdk.internal.misc.Unsafe;
137   * using a factory that may return {@code null}. However doing so may
138   * cause unjoined tasks to never be executed.
139   *
140 < * <p><b>Implementation notes:</b> This implementation restricts the
141 < * maximum number of running threads to 32767. Attempts to create
142 < * pools with greater than the maximum number result in
143 < * {@code IllegalArgumentException}.
144 < *
145 < * <p>This implementation rejects submitted tasks (that is, by throwing
146 < * {@link RejectedExecutionException}) only when the pool is shut down
147 < * or internal resources have been exhausted.
140 > * @implNote This implementation restricts the maximum number of
141 > * running threads to 32767. Attempts to create pools with greater
142 > * than the maximum number result in {@code
143 > * IllegalArgumentException}. Also, this implementation rejects
144 > * submitted tasks (that is, by throwing {@link
145 > * RejectedExecutionException}) only when the pool is shut down or
146 > * internal resources have been exhausted.
147   *
148   * @since 1.7
149   * @author Doug Lea
# Line 2892 | Line 2891 | public class ForkJoinPool extends Abstra
2891       * Applications include contexts in which the number of available
2892       * processors changes over time.
2893       *
2894 +     * @implNote This implementation restricts the maximum number of
2895 +     * running threads to 32767
2896 +     *
2897       * @param size the target parallelism level
2898       * @return the previous parallelism level.
2899       * @throws IllegalArgumentException if size is less than 1 or
2900 <     *         greater than the maximum supported by this
2899 <     *         pool (currently 32767).
2900 >     *         greater than the maximum supported by this pool.
2901       * @throws IllegalStateException if this is the{@link #commonPool()} and
2902       *         parallelism level was set by System property
2903       *         {@systemProperty java.util.concurrent.ForkJoinPool.common.parallelism}.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines