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

ClhsdbCDSJstackPrintAll incorrectly thinks CDS is in use

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 15
    • None
    • hotspot
    • None
    • svc
    • b14
    • generic

      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.

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

              Created:
              Updated:
              Resolved: