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

TestPrintGCDetailsVerbose is never run by jtreg

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc
    • Resolved In Build:
      b109
    • CPU:
      generic
    • OS:
      generic

      Description

      The test hotspot/tests/gc/parallel/TestPrintGCDetailsVerbose.java is never run, because it contains an @requires that will never be true. Specifically

        @requires java.version ~= ".*fastdebug"

      is never true. It might be that this used to work, before some of the recent version information changes.

      The java.version system property is made a @requires name by adding it to the requires.properties list in the TEST.ROOT file. However, the value of that property with current jdk9 is "9-internal", regardless of the debug level. However, a jdk.debug system property was recently added (JDK-8139986), and we could use that instead.

      This test is the only user of @requires java.version, so that property could be removed from the TEST.ROOT requires.properties list.

      Once things are fixed so the test will be run by jtreg, it will fail because it is still using the obsolete -XX:+PrintGCDetails -XX:+Verbose options rather than the new unified logging (with trace level).

        Attachments

          Activity

            People

            Assignee:
            kbarrett Kim Barrett
            Reporter:
            kbarrett Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: