Author: fhanik Date: Tue Aug 28 13:45:34 2012 New Revision: 1378134 URL: http://svn.apache.org/viewvc?rev=1378134&view=rev Log: revert change. vetoed per http://tomcat.markmail.org/thread/6hmjgrzys5txekew
Modified: tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java 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=1378134&r1=1378133&r2=1378134&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java (original) +++ tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java Tue Aug 28 13:45:34 2012 @@ -218,17 +218,7 @@ 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) { @@ -308,7 +298,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")) { --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org