jacks.exp (gcj_jacks_write): Explicitly limit the maximum heap size to avoid unnecess...
authorRanjit Mathew <rmathew@hotmail.com>
Sun, 25 Apr 2004 04:19:13 +0000 (04:19 +0000)
committerRanjit Mathew <rmathew@gcc.gnu.org>
Sun, 25 Apr 2004 04:19:13 +0000 (04:19 +0000)
* testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Explicitly
limit the maximum heap size to avoid unnecessary thrashing.

From-SVN: r81156

libjava/ChangeLog
libjava/testsuite/libjava.jacks/jacks.exp

index f71959335443cf126394b238e564d515c4f85c2e..3cb21bdbd9f157479dbf81e6ad3d304024b645be 100644 (file)
@@ -1,3 +1,8 @@
+2004-04-25  Ranjit Mathew  <rmathew@hotmail.com>
+       
+       * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Explicitly
+       limit the maximum heap size to avoid unnecessary thrashing.
+
 2004-04-24  Jerry Quinn  <jlquinn@optonline.net>
 
        * java/text/CollationElementIterator.java (reset): Reset
index 353859ce8039f5ab977ad551f408add7f2e808aa..679c7f584089849ab190f193cdf5e474bf2c495e 100644 (file)
@@ -28,7 +28,12 @@ proc gcj_jacks_write {filename} {
   puts $fd "set JAVA_CLASSPATH \"$libgcj_jar\""
   puts $fd "set JAVAC_FLAGS [list $rest]"
   puts $fd "set JAVA [list [libjava_find_gij]]"
-  puts $fd "set JAVA_FLAGS \"\""
+
+  # Without an explicit limit on the heap size, tests depending on
+  # an OutOfMemoryError (e.g. "15.9.4-runtime-creation-2") can result
+  # in a lot of unnecessary thrashing.
+  puts $fd "set JAVA_FLAGS \"-mx=64m\""
+
   puts $fd "set JAVAC_ENCODING_FLAG --encoding="
   puts $fd "set tcltest::testConstraints(encoding) 1"
   puts $fd "set tcltest::testConstraints(gcj) 1"