tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 48837] Memory leaks protection does not cure leaks triggered by JSP pages code
Date Thu, 11 Mar 2010 21:46:47 GMT

--- Comment #1 from 2010-03-11 21:46:46 UTC ---
Created an attachment (id=25116)
 --> (
Patch to enhance classloader leaks because of uncleared ThreadLocal

Proposing a patch to better detect leaks. Before the patch, the leak caused by
an uncleared ThreadLocal is detected only if the ThreadLocal key or value is
loaded by the WebAppClassLoader.
The patch proposes to also detect cases where the key or value object class was
loaded by a child classloader (or any level of descendant).

The leak of the example foo.jsp is detected (and cleared) with this patch.

Note that there's still a leak if the key or value is a JDK class like an
ArrayList which itself contains an instance of a class loaded by the
WebAppClassLoader (or a child classloader).


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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message