harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r475478 - /incubator/harmony/enhanced/drlvm/trunk/vm/tests/smoke/gc/Free.java
Date Wed, 15 Nov 2006 22:50:33 GMT
Author: gshimansky
Date: Wed Nov 15 14:50:33 2006
New Revision: 475478

URL: http://svn.apache.org/viewvc?view=rev&rev=475478
Log:
Applied HARMONY-1978 [drlvm][testing] gc.Free fails for me on SUSE9

Tests passed on ubuntu and winXP


Modified:
    incubator/harmony/enhanced/drlvm/trunk/vm/tests/smoke/gc/Free.java

Modified: incubator/harmony/enhanced/drlvm/trunk/vm/tests/smoke/gc/Free.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/drlvm/trunk/vm/tests/smoke/gc/Free.java?view=diff&rev=475478&r1=475477&r2=475478
==============================================================================
--- incubator/harmony/enhanced/drlvm/trunk/vm/tests/smoke/gc/Free.java (original)
+++ incubator/harmony/enhanced/drlvm/trunk/vm/tests/smoke/gc/Free.java Wed Nov 15 14:50:33
2006
@@ -39,7 +39,7 @@
         trace("free = " + free + ", total = " + rt.totalMemory() + ", max = " + rt.maxMemory());
         int size = 1;
         try {
-            while (size < free) {
+            while (size < free/4) {
                 long free_before = rt.freeMemory();
                 Object o = new byte[size];
                 long free_after = rt.freeMemory();
@@ -70,5 +70,6 @@
 
     public static void fail(Object o) {
         System.out.println("FAILED, " + o);
+        System.exit(1);
     }
 }



Mime
View raw message