Description
If a Thread object is created but its start method is never called. When destroyed the actual thread can leak if its sitting in the suspended state waiting to be started. This happens right now in the case where a task is submitted to a ThreadPoolExecutor but is rejected for some reason such as the ExecutorService already being shut down. We need to check for the suspended state on destroy and wake the thread with its cancel flag set so it shuts down normally.
Attachments
Attachments
Issue Links
- is depended upon by
-
AMQCPP-451 The number of CMS threads increases when we restart the message broker repeatedly
- Closed