On 23.08.2010 22:35, ma...@apache.org wrote:
Author: markt
Date: Mon Aug 23 20:35:03 2010
New Revision: 988296

URL: http://svn.apache.org/viewvc?rev=988296&view=rev
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=49669
Another Java class triggering a memory leak. This time 
javax.security.auth.Policy

Modified:
     
tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java
     tomcat/trunk/webapps/docs/config/listeners.xml

Modified: 
tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java?rev=988296&r1=988295&r2=988296&view=diff
==============================================================================
--- 
tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java 
(original)
+++ 
tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java 
Mon Aug 23 20:35:03 2010
@@ -23,6 +23,7 @@ import java.lang.reflect.Method;
  import java.net.MalformedURLException;
  import java.net.URL;
  import java.net.URLConnection;
+import java.security.Policy;

  import javax.imageio.ImageIO;
  import javax.xml.parsers.DocumentBuilderFactory;
@@ -93,6 +94,20 @@ public class JreMemoryLeakPreventionList
           this.keepAliveProtection = keepAliveProtection;
       }

+     /**
+      * Protect against the memory leak caused when the first call to
+      *<code>javax.security.auth.Policy</code>  is triggered by a web
+      * application. This first call populate a static variable with a 
reference
+      * to the context class loader. Defaults to<code>true</code>.
+      */
+     private boolean securityPolicyProtection = true;
+     public boolean iSsecurityPolicyProtection() {

iSsec... -> isSec... ?

Have a nice day

Rainer

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

Reply via email to