8066745: tools/pack200/Pack200Props.java failed with java.lang.OutOfMemoryError: Java heap space
Reviewed-by: alanb
--- 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
*/