ThreadGroup should not ever hold on to dead threads in its list
---------------------------------------------------------------

                 Key: JRUBY-2721
                 URL: http://jira.codehaus.org/browse/JRUBY-2721
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.1.2
            Reporter: Charles Oliver Nutter
            Assignee: Charles Oliver Nutter
             Fix For: JRuby 1.1.3


The following code produces a ThreadGroup with thousands of dead threads, which 
is part of the cause of Mongrel eventually filling up with dead threads and 
refusing connections:

{noformat}
tg = ThreadGroup.new; 10000.times { t = Thread.new { }; Thread.pass; tg.add(t) 
}; p tg.list
{noformat}

ThreadGroup should never list dead threads, though it does not appear it should 
do anything to prevent a call to add. Needs specs and fix for 1.1.3. Probably 
related to JRUBY-2712.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to