You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by gs...@apache.org on 2006/11/15 23:50:33 UTC
svn commit: r475478 -
/incubator/harmony/enhanced/drlvm/trunk/vm/tests/smoke/gc/Free.java
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);
}
}