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

ClhsdbCDSJstackPrintAll incorrectly thinks CDS is in use

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 15
    • None
    • hotspot
    • None
    • svc
    • b14
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: