Timothy Bish created AMQCPP-461:
-----------------------------------

             Summary: Create Thread objects that aren't started can leak their 
suspended thread on destroy.
                 Key: AMQCPP-461
                 URL: https://issues.apache.org/jira/browse/AMQCPP-461
             Project: ActiveMQ C++ Client
          Issue Type: Bug
          Components: Decaf
    Affects Versions: 3.5.0
            Reporter: Timothy Bish
            Assignee: Timothy Bish
             Fix For: 3.5.1, 3.6.0


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. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to