changeset 11071:ac944e9e3549

8066745: tools/pack200/Pack200Props.java failed with java.lang.OutOfMemoryError: Java heap space Reviewed-by: alanb
author ksrini
date Mon, 08 Dec 2014 07:51:59 -0800
parents 306c2e872d8f
children 26eaed8bffaf
files test/tools/pack200/Pack200Props.java test/tools/pack200/Pack200Test.java
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/tools/pack200/Pack200Props.java	Mon Dec 08 07:15:49 2014 +0000
+++ b/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/test/tools/pack200/Pack200Test.java	Mon Dec 08 07:15:49 2014 +0000
+++ b/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
   */