* configure.ac: New switch for disabling -O2 (--disable-optimizations).
[cacao.git] / tests / gc / LockRecords.java
index 96e78682d9dffd16c19d093e96ac5012ddd0b87c..c3c04a506baceed6dd4e10de28fb44528d93638e 100644 (file)
@@ -70,8 +70,6 @@ public class LockRecords {
                System.out.println("Cleaning up ...");
                v = null;
                System.gc();
-               //System.gc();
-               //System.gc();
 
                System.out.println("Waiting some seconds ...");
                try {
@@ -79,6 +77,9 @@ public class LockRecords {
                } catch (Exception e) {
                        e.printStackTrace();
                }
+
+               System.out.println("Cleaning up again ...");
+               System.gc();
        }
 
        public static void main(String args[])