JDK-8151280 : Update HotSpot tests to use vm.compMode instead of their own logic
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-03-04
  • Updated: 2016-09-06
  • Resolved: 2016-07-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b131Fixed
Related Reports
Duplicate :  
Duplicate :  
Description
As of https://bugs.openjdk.java.net/browse/CODETOOLS-7901583 is resolved it's possible now to set vm.compMode in the correct value and rely on this at @requires expressions.

What should be done here:
1) A new setter for the vm.compMode property to be developed.
2) Tests using their own logic to see if the applicable compMode is used to be modified.
Comments
jvmci/compilerToVM/IsMatureTest.java has different checks depending on java.vm.info.
21-06-2016

FC Extension Request Justification: reduce false negative test results, speed-up test execution Risk: low, declarative changes and corresponding clean up in tests Remaining work: update the tests which use java.vm.info directly - hotspot/compiler/codecache/stress/OverloadCompileQueueTest.java and the tests which use this property indirectly thru - hotspot/compiler/intrinsics/mathexact/sanity/IntrinsicBase.java - hotspot/compiler/whitebox/CompilerWhiteBoxTest.java Due date: in 2w ~ 1st Jul
21-06-2016

$ ack java.vm.info ./test/ test/compiler/codecache/stress/OverloadCompileQueueTest.java 53: = System.getProperty("java.vm.info").startsWith("interpreted "); test/compiler/intrinsics/mathexact/sanity/IntrinsicBase.java 97: System.out.println("java.vm.info=" + MODE); test/compiler/jvmci/compilerToVM/IsMatureTest.java 56: = System.getProperty("java.vm.info").contains("compiled mode"); test/compiler/whitebox/CompilerWhiteBoxTest.java 77: /** Value of {@code java.vm.info} (interpreted|mixed|comp mode) */ 78: protected static final String MODE = System.getProperty("java.vm.info");
21-06-2016

"1) A new setter for the vm.compMode property to be developed. " is done by JDK-8152432.
11-04-2016