src/java.base/share/classes/java/util/concurrent/ThreadPoolExecutor.java
changeset 58657 6252605fb005
parent 54684 c277ec29ee12
equal deleted inserted replaced
58656:7322c48a84cf 58657:6252605fb005
   602          * serialVersionUID to suppress a javac warning.
   602          * serialVersionUID to suppress a javac warning.
   603          */
   603          */
   604         private static final long serialVersionUID = 6138294804551838833L;
   604         private static final long serialVersionUID = 6138294804551838833L;
   605 
   605 
   606         /** Thread this worker is running in.  Null if factory fails. */
   606         /** Thread this worker is running in.  Null if factory fails. */
       
   607         @SuppressWarnings("serial") // Unlikely to be serializable
   607         final Thread thread;
   608         final Thread thread;
   608         /** Initial task to run.  Possibly null. */
   609         /** Initial task to run.  Possibly null. */
       
   610         @SuppressWarnings("serial") // Not statically typed as Serializable
   609         Runnable firstTask;
   611         Runnable firstTask;
   610         /** Per-thread task counter */
   612         /** Per-thread task counter */
   611         volatile long completedTasks;
   613         volatile long completedTasks;
   612 
   614 
   613         // TODO: switch to AbstractQueuedLongSynchronizer and move
   615         // TODO: switch to AbstractQueuedLongSynchronizer and move