https://bz.apache.org/bugzilla/show_bug.cgi?id=54537

--- Comment #4 from Christopher Schultz <ch...@christopherschultz.net> ---
(In reply to Rahul Singh from comment #3)
> Can't we get keep ArrayList as it and instead of removing the object from
> the list (first line of StatementFinalizer.closeInvoked() method), just get
> that Statement reference and close that.

Why do you specifically want to use an ArrayList? Why are you commenting on a
bug that was closed almost one year ago?

> At the end of loop when all Statements have been closed, we can just call
> clear() on the list. It will nullify all the references and those will GCed
> latter.
> 
> Finding a particular entry in a linked list having millions of objects may
> also have some cost.

When do you need to index into the middle of the list?

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to