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

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 15
    • Fix Version/s: 15
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b18
    • OS:
      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

              Assignee:
              lmesnik Leonid Mesnik
              Reporter:
              minqi Yumin Qi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: