LingeredApp does not pass getTestJavaOpts() to the children process if vmArguments is already specified

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 15
    • Affects Version/s: 15
    • Component/s: hotspot
    • None
    • b18
    • generic

      This bug limits test coverage for ClhsdbCDSJstackPrintAll.java. When jtreg -vmoption:-XX:+UseZGC is used:

      + the test dumps a CDS archive with ZGC enabled (use compressed oops = false)

      + because of this bug, the test tries to use the CDS archive without enabling ZGC, so we have compressed oops = true. As a result, the VM cannot load this CDS archive because the oop compression mode doesn't match.

      --------

      in runAppPrepare:
              if (vmArguments == null) {
                  // Propagate getTestJavaOpts() to LingeredApp
                  vmArguments = Utils.getTestJavaOpts();
              } else {
                  // Lets user manage LingeredApp options
              }
      When vmArguments specified, the testing java options are not passed into children process. This may lead to inconsistency for CDS dump/run.

            Assignee:
            Leonid Mesnik
            Reporter:
            Yumin Qi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: