OpenJDK / jdk / hs
changeset 46844:36796fc011d8
8176797: [TESTBUG] tools/launcher/Settings.java -Xss size is too small
Summary: increase from 256000 to 256k
Reviewed-by: dholmes, ctornqvi, stsmirno, ksrini
author | cjplummer |
---|---|
date | Thu, 16 Mar 2017 18:16:39 -0700 |
parents | c092a843a8f9 |
children | 9c029ec7c296 |
files | jdk/test/tools/launcher/Settings.java |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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);