JDK-8026865 : [TESTBUG] 'compiler/print/PrintInlining.java' should specify -XX:+UnlockDiagnosticVMOptions
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: hs24,hs25,7,8
  • Priority: P5
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2013-10-18
  • Updated: 2019-01-22
  • Resolved: 2013-10-21
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 7 JDK 8 Other
7u241Fixed 8Fixed hs25Fixed
Related Reports
Relates :  
Description
Test compiler/print/PrintInlining.java runs Java with -XX:+PrintInlining specified and do just System.out.println("Passed").
A run on b111 failed with error.
So as the comments below says test should run java with additional flag "-XX:+UnlockDiagnosticVMOptions"

./jdk1.8.0/bin/java -XX:+PrintInlining -version
Improperly specified VM option 'PrintInlining'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Comments
Please backport the fix to 7u60.
04-02-2014

I see the changes. Many thanks
21-10-2013

ILW=LMM=>P5
19-10-2013

It is a strange way to respond though: Improperly specified VM option 'PrintInlining' I would have thought it would either say it is unrecognized or else that it is diagnostic and so UnlockDiagnosticVMOptions is needed. Anyway the test needs to add -XX:+UnlockDiagnosticVMOptions regardless
18-10-2013

We have test not for 'PrintInlining', we have test for JDK-8022585 (JVM crashes when ran with -XX:+PrintInlining)
18-10-2013

So why do we have test for this?
18-10-2013

it means that it's a diagnostic flag
18-10-2013

What does this mean?
18-10-2013

diagnostic(bool, PrintInlining, false, \ "Print inlining optimizations")
18-10-2013