You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bi...@apache.org on 2010/04/25 03:24:33 UTC
svn commit: r937733 -
/tomcat/trunk/test/org/apache/catalina/loader/TestWebappClassLoaderMemoryLeak.java
Author: billbarker
Date: Sun Apr 25 01:24:33 2010
New Revision: 937733
URL: http://svn.apache.org/viewvc?rev=937733&view=rev
Log:
Allow time for the OS to do a context switch. Otherwise this fails 100% of the time on my Windows 7 box
Modified:
tomcat/trunk/test/org/apache/catalina/loader/TestWebappClassLoaderMemoryLeak.java
Modified: tomcat/trunk/test/org/apache/catalina/loader/TestWebappClassLoaderMemoryLeak.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/loader/TestWebappClassLoaderMemoryLeak.java?rev=937733&r1=937732&r2=937733&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/catalina/loader/TestWebappClassLoaderMemoryLeak.java (original)
+++ tomcat/trunk/test/org/apache/catalina/loader/TestWebappClassLoaderMemoryLeak.java Sun Apr 25 01:24:33 2010
@@ -50,6 +50,11 @@ public class TestWebappClassLoaderMemory
ctx.stop();
// If the thread still exists, we have a thread/memory leak
+ try {
+ Thread.sleep(10);
+ } catch(InterruptedException ie) {
+ // ignore
+ }
Thread[] threads = getThreads();
for (Thread thread : threads) {
if (thread != null &&
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org