JDK-8168305 : GC.class_stats should not require -XX:+UnlockDiagnosticVMOptions
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-10-19
  • Updated: 2016-11-23
  • Resolved: 2016-10-28
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 b146Fixed
Related Reports
Relates :  
Description
Running the diagnostic command GC.class_stats against a vanilla VM prints:
--
GC.class_stats command requires -XX:+UnlockDiagnosticVMOptions
--
This is really unhelpful when trying to diagnose a problem. There is really no reason for diagnostic commands to be hidden behind JVM flags.
Comments
Only because the name starts with "GC" - you never guessed?
21-10-2016

If the RFE JDK-6479360 for introducing the functionality is developed and reviewed by runtime/svc, why is fixing this a GC bug?
21-10-2016