Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8083186 | emb-9 | Filipp Zhinkin | P3 | Resolved | Fixed | team |
JDK-8331807 | 8u431 | Adithya Haradi Gopal | P3 | Resolved | Fixed | b01 |
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.
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
- backported by
-
JDK-8083186 Add isTieredSupported method to c.o.j.t.Platforms
- Resolved
-
JDK-8331807 Add isTieredSupported method to c.o.j.t.Platforms
- Resolved
- blocks
-
JDK-8059623 JEP-JDK-8043304: Test task: command line options tests
- Resolved