Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8190679

java/util/Arrays/TimSortStackSize2.java fails with "Initial heap size set to a larger value than the maximum heap size"

    Details

    • Subcomponent:
    • Resolved In Build:
      b04

      Description

      java/util/Arrays/TimSortStackSize2.java could fail with "Initial heap size set to a larger value than the maximum heap size" in case small -Xmx is passed during test execution.

      Failure example:
      ----------System.out:(5/611)----------
      compressedOops: false; Test will be started with "-Xms770m"
      Command line: [linux-x64-debug.jdk/jdk-10/fastdebug/bin/java -ea -esa -Xmx512m -Xcomp -XX:+CreateCoredumpOnCrash -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -server -XX:+TieredCompilation -XX:+IgnoreUnrecognizedVMOptions -XX:+AggressiveOpts -XX:-UseCompressedOops -Xms770m TimSortStackSize2 67108864 ]
      Error occurred during initialization of VM
      Initial heap size set to a larger value than the maximum heap size

      ----------System.err:(38/2136)----------
       stdout: [Error occurred during initialization of VM
      Initial heap size set to a larger value than the maximum heap size
      ];
       stderr: []
       exitValue = 1

        Issue Links

          Activity

          Hide
          iignatyev Igor Ignatyev added a comment -
          the test passed in jdk testing, b/c UseCompressedOops is on by default, so the test uses -Xms385[1], w/ -XX:-UseCompressedOops it will use Xms770 which is more than default Xmx512.

          [1]
           Boolean compressedOops = WhiteBox.getWhiteBox()
                          .getBooleanVMFlag("UseCompressedOops");
                      final String xmsValue = "-Xms" +
                          ((compressedOops == null || compressedOops) ? "385" : "770")
                          + "m";
          Show
          iignatyev Igor Ignatyev added a comment - the test passed in jdk testing, b/c UseCompressedOops is on by default, so the test uses -Xms385[1], w/ -XX:-UseCompressedOops it will use Xms770 which is more than default Xmx512. [1]  Boolean compressedOops = WhiteBox.getWhiteBox()                 .getBooleanVMFlag("UseCompressedOops");             final String xmsValue = "-Xms" +                 ((compressedOops == null || compressedOops) ? "385" : "770")                 + "m";
          Hide
          iignatyev Igor Ignatyev added a comment -
          so it's JDK-8079378
          Show
          iignatyev Igor Ignatyev added a comment - so it's JDK-8079378
          Show
          iignatyev Igor Ignatyev added a comment - http://cr.openjdk.java.net/~iignatyev//8190679/webrev.00/index.html
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk/hs/rev/1836bf0c820a
          User: iignatyev
          Date: 2018-02-28 05:37:43 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk/hs/rev/1836bf0c820a User: iignatyev Date: 2018-02-28 05:37:43 +0000
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk/jdk/rev/1836bf0c820a
          User: jwilhelm
          Date: 2018-03-09 01:13:15 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk/jdk/rev/1836bf0c820a User: jwilhelm Date: 2018-03-09 01:13:15 +0000

            People

            • Assignee:
              iignatyev Igor Ignatyev
              Reporter:
              epavlova Ekaterina Pavlova
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: