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.195 by jsr166, Tue Dec 8 20:33:21 2020 UTC vs.
Revision 1.196 by jsr166, Wed Dec 9 21:50:45 2020 UTC

# Line 2068 | Line 2068 | public class ThreadPoolExecutor extends
2068       *   public void rejectedExecution(Runnable r, ThreadPoolExecutor e) {
2069       *     Future<?> dropped = e.getQueue().poll();
2070       *     if (dropped != null)
2071 <     *        dropped.cancel(false); // also consider logging the failure
2072 <     *     e.execute(r);             // retry
2071 >     *       dropped.cancel(false);  // also consider logging the failure
2072 >     *     e.execute(r);  // retry
2073       * }}}</pre>
2074       */
2075      public static class DiscardOldestPolicy implements RejectedExecutionHandler {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines