-
Enhancement
-
Resolution: Fixed
-
P4
-
6
-
b22
-
generic
-
generic
-
Not verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2151525 | 6-pool | Igor Kushnirskiy | P4 | Closed | Won't Fix |
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.
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.
- backported by
-
JDK-2151525 Replace ThreadPool creation code in SwingWorker with java.util.concurrent
- Closed
- relates to
-
JDK-6957765 Test Bug - javax/swing/SwingWorker/6480289/bug6480289.java failed on 1.7.0b94 but passed on previous
- Closed
-
JDK-6628607 SwingWorker's shutdownHook needs to call executorService.awaitTermination
- Closed
-
JDK-6469656 JConsole keeps creating new threads
- Closed