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

Add isTieredSupported method to c.o.j.t.Platforms

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P3
    • 9
    • 9
    • hotspot
    • b47

    Backports

      Description

        Some tests may depend on tested JVM's tiered compilation support.
        At the moment the only way to check it is to start a new JVM with +TieredCompilation and check if it's output contain message about "unsupported option" or to run tested JVM with +TieredCompilation and check that TieredCompilation flag is disabled.

        These approaches are far from ideal because it either increase test's execution time, or require additional dependencies (like JMX or WhiteBox API).

        Fortunately there is a "sun.management.compiler" property that contain compier(s) name and in case when TieredCompilation is supported it contain "Tiered Compilers" substring.

        A new method "isTieredSupported" should be added to c.o.j.t.Platforms in order to check tiered compilation availability by looking at "sun.management.compiler" value.

        Attachments

          Issue Links

            Activity

              People

                fzhinkin Filipp Zhinkin
                fzhinkin Filipp Zhinkin
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: