Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6480289

Replace ThreadPool creation code in SwingWorker with java.util.concurrent

XMLWordPrintable

    • b22
    • generic
    • generic
    • Not verified

        A DESCRIPTION OF THE FIX :
        I believe the ThreadPool creation code in SwingWorker is dubious and should be replaced by standard java.util.concurrent functionality. According to the comment in SwingWorker.java, the thread pool is intended to have no more than MAX_WORKERS threads which time out after one second and an unbounded job queue. Instead of working around the distinction between core and normal worker threads as SwingWorker does today, it is possible to have core threads time out, too, using the allowCoreThreadTimeout method.

              peterz Peter Zhelezniakov
              tbell Tim Bell
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: