# HG changeset patch # User cjplummer # Date 1489713399 25200 # Node ID 36796fc011d85d811fc6e88ecbf7c7e6acf7b135 # Parent c092a843a8f9d19e2116b4aeed4fcd0587063849 8176797: [TESTBUG] tools/launcher/Settings.java -Xss size is too small Summary: increase from 256000 to 256k Reviewed-by: dholmes, ctornqvi, stsmirno, ksrini diff -r c092a843a8f9 -r 36796fc011d8 jdk/test/tools/launcher/Settings.java --- a/jdk/test/tools/launcher/Settings.java Tue Mar 14 20:53:08 2017 -0400 +++ b/jdk/test/tools/launcher/Settings.java Thu Mar 16 18:16:39 2017 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -73,9 +73,9 @@ } static void runTestOptionDefault() throws IOException { - String stackSize = "256"; // in kb + int stackSize = 256; // in kb if (getArch().equals("ppc64") || getArch().equals("ppc64le")) { - stackSize = "800"; + stackSize = 800; } TestResult tr; tr = doExec(javaCmd, "-Xms64m", "-Xmx512m", @@ -86,7 +86,7 @@ throw new RuntimeException("test fails"); } tr = doExec(javaCmd, "-Xms65536k", "-Xmx712m", - "-Xss" + stackSize + "000", "-XshowSettings", "-jar", testJar.getAbsolutePath()); + "-Xss" + (stackSize * 1024), "-XshowSettings", "-jar", testJar.getAbsolutePath()); containsAllOptions(tr); if (!tr.isOK()) { System.out.println(tr);