8066745: tools/pack200/Pack200Props.java failed with java.lang.OutOfMemoryError: Java heap space
authorksrini
Mon, 08 Dec 2014 07:51:59 -0800
changeset 27940 1ce0acf58d6c
parent 27939 0a39982a7c6a
child 27941 dba160979011
8066745: tools/pack200/Pack200Props.java failed with java.lang.OutOfMemoryError: Java heap space Reviewed-by: alanb
jdk/test/tools/pack200/Pack200Props.java
jdk/test/tools/pack200/Pack200Test.java
--- a/jdk/test/tools/pack200/Pack200Props.java	Mon Dec 08 07:15:49 2014 +0000
+++ b/jdk/test/tools/pack200/Pack200Props.java	Mon Dec 08 07:51:59 2014 -0800
@@ -62,6 +62,8 @@
 
         List<String> cmdsList = new ArrayList<>();
         cmdsList.add(Utils.getPack200Cmd());
+        cmdsList.add("-J-Xshare:off");
+        cmdsList.add("-J-Xmx1280m");
         cmdsList.add("--effort=1");
         cmdsList.add("--verbose");
         cmdsList.add("--no-gzip");
--- a/jdk/test/tools/pack200/Pack200Test.java	Mon Dec 08 07:15:49 2014 +0000
+++ b/jdk/test/tools/pack200/Pack200Test.java	Mon Dec 08 07:51:59 2014 -0800
@@ -34,7 +34,7 @@
   * @summary check for memory leaks, test general packer/unpacker functionality\
   *          using native and java unpackers
   * @compile -XDignore.symbol.file Utils.java Pack200Test.java
-  * @run main/othervm/timeout=1200 -Xmx512m Pack200Test
+  * @run main/othervm/timeout=1200 -Xmx1280m -Xshare:off Pack200Test
   * @author ksrini
   */