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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 15
    • 15
    • hotspot
    • None
    • b18
    • generic

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              lmesnik Leonid Mesnik
              minqi Yumin Qi
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: