You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by ka...@apache.org on 2011/10/20 10:07:17 UTC

svn commit: r1186656 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/memory/MemoryLeakFixesTest.java

Author: kahatlen
Date: Thu Oct 20 08:07:17 2011
New Revision: 1186656

URL: http://svn.apache.org/viewvc?rev=1186656&view=rev
Log:
DERBY-5472: Speed up MemoryLeakFixesTest.testRepeatedDatabaseCreationWithAutoStats()

Remove the workaround for DERBY-5412 on phoneME since that problem is
not present in the rewritten test.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/memory/MemoryLeakFixesTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/memory/MemoryLeakFixesTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/memory/MemoryLeakFixesTest.java?rev=1186656&r1=1186655&r2=1186656&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/memory/MemoryLeakFixesTest.java (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/memory/MemoryLeakFixesTest.java Thu Oct 20 08:07:17 2011
@@ -247,13 +247,6 @@ public class MemoryLeakFixesTest extends
                 JDBCDataSource.clearStringBeanProperty(ds, "shutdownDatabase");
             }
 
-            if (isPhoneME()) {
-                // DERBY-5412: phoneME fails after some iterations because the
-                // number of class names exceeds a VM limit. If we invoke
-                // garbage collection manually, it seems to be able to reclaim
-                // the classes that are no longer in use, and complete the test.
-                Runtime.getRuntime().gc();
-            }
         }
 
         // extra sanity check making sure that the database was created in the