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

ClhsdbCDSJstackPrintAll incorrectly thinks CDS is in use

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 15
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      svc
    • Resolved In Build:
      b14
    • OS:
      generic

      Description

      The test (and also ClhsdbCDSCore ) use the following to check if CDS is on:

          List<String> cmds = List.of("flags UseSharedSpaces");
          String useSharedSpacesOutput = test.run(theApp.getPid(), cmds,
                                                          null, null);
          ....
          if (!useSharedSpacesOutput.contains("true")) {
              // CDS archive is not mapped. Skip the rest of the test.

      But the output looks like this:

          hsdb> hsdb> + verbose true
          hsdb> + flags UseSharedSpaces
          UseSharedSpaces = false command line
          hsdb> + quit

      I think at one point the "if" worked, but the "+ verbose true" part of the log must have been added recently to cause the "if" to determine the wrong result.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              minqi Yumin Qi
              Reporter:
              minqi Yumin Qi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: