activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy Bish (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMQCPP-461) Create Thread objects that aren't started can leak their suspended thread on destroy.
Date Mon, 11 Feb 2013 20:43:13 GMT
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

Mime
View raw message