Author: fhanik Date: Tue Aug 28 13:39:36 2012 New Revision: 1378132 URL: http://svn.apache.org/viewvc?rev=1378132&view=rev Log: revert change. vetoed per http://tomcat.markmail.org/thread/6hmjgrzys5txekew
Modified: tomcat/tc7.0.x/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java tomcat/tc7.0.x/trunk/webapps/docs/config/listeners.xml Modified: tomcat/tc7.0.x/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java URL: http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java?rev=1378132&r1=1378131&r2=1378132&view=diff ============================================================================== --- tomcat/tc7.0.x/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java (original) +++ tomcat/tc7.0.x/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java Tue Aug 28 13:39:36 2012 @@ -218,18 +218,6 @@ public class JreMemoryLeakPreventionList this.classesToInitialize = classesToInitialize; } - /** - * Sets the time that this listener will request for garbage-collection latency - * @see {@code sun.misc.GC#requestLatency(long)} - */ - private long gcDaemonPeriod = Long.MAX_VALUE - 1; - public long getGcDaemonPeriod() { - return gcDaemonPeriod; - } - public void setGcDaemonPeriod(long gcDaemonPeriod) { - this.gcDaemonPeriod = gcDaemonPeriod; - } - @Override public void lifecycleEvent(LifecycleEvent event) { // Initialise these classes when Tomcat starts @@ -308,7 +296,7 @@ public class JreMemoryLeakPreventionList Method method = clazz.getDeclaredMethod( "requestLatency", new Class[] {long.class}); - method.invoke(null, Long.valueOf(getGcDaemonPeriod())); + method.invoke(null, Long.valueOf(Long.MAX_VALUE - 1)); } catch (ClassNotFoundException e) { if (System.getProperty("java.vendor").startsWith( "Sun")) { Modified: tomcat/tc7.0.x/trunk/webapps/docs/config/listeners.xml URL: http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/webapps/docs/config/listeners.xml?rev=1378132&r1=1378131&r2=1378132&view=diff ============================================================================== --- tomcat/tc7.0.x/trunk/webapps/docs/config/listeners.xml (original) +++ tomcat/tc7.0.x/trunk/webapps/docs/config/listeners.xml Tue Aug 28 13:39:36 2012 @@ -285,13 +285,6 @@ hard to diagnose. Defaults to <code>true</code>.</p> </attribute> - <attribute name="gcDaemonPeriod" required="false"> - <p>Allows a user to configure the period of time the JVM will attempt to - schedule an object-inspection. This value is used as a parameter when - calling the method <code>sun.misc.GC.requestLatency</code> - Defaults to <code>Long.MAX_VALUE - 1</code>.</p> - </attribute> - </attributes> </subsection> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org