You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2010/11/05 16:00:13 UTC
DO NOT REPLY [Bug 50222] New: JreMemoryLeakPreventionListener should
speculatively cause memory leaks using the system ClassLoader
https://issues.apache.org/bugzilla/show_bug.cgi?id=50222
Summary: JreMemoryLeakPreventionListener should speculatively
cause memory leaks using the system ClassLoader
Product: Tomcat 7
Version: trunk
Platform: PC
Status: NEW
Severity: enhancement
Priority: P2
Component: Catalina
AssignedTo: dev@tomcat.apache.org
ReportedBy: chris@christopherschultz.net
JreMemoryLeakPreventionListener intentionally invokes methods known to pin the
context ClassLoader in memory in order to avoid having a WebappClassLoader
unintentionally pin itself. This may cause undesirable behavior in embedded
environments.
Instead, JMLPL could use a security context to temporarily set the current
context ClassLoader to be the system ClassLoader and solve the embedded
situation without the client having to remember to take this care.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 50222] JreMemoryLeakPreventionListener should
speculatively cause memory leaks using the system ClassLoader
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50222
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
OS/Version| |All
--- Comment #2 from Mark Thomas <ma...@apache.org> 2010-11-10 08:04:11 EST ---
Nice idea and thanks for the patch.
It has been applied to 7.0.x and will be included in 7.0.5 onwards.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 50222] JreMemoryLeakPreventionListener should
speculatively cause memory leaks using the system ClassLoader
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50222
--- Comment #1 from Christopher Schultz <ch...@christopherschultz.net> 2010-11-05 13:54:37 EDT ---
Created an attachment (id=26260)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=26260)
Patch to add tccl push/pop around speculative ClassLoader pinning.
Patch to add tccl push/pop around speculative ClassLoader pinning.
Patch does not include /lots/ of re-indentation required by a newly-added
try/catch block surrounding everything.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 50222] JreMemoryLeakPreventionListener should
speculatively cause memory leaks using the system ClassLoader
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50222
--- Comment #3 from Mark Thomas <ma...@apache.org> 2010-11-25 12:19:38 EST ---
Fixed in 6.0.x and will be included in 6.0.30 onwards.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org