JDK-8047934 : Adding new API for unlocking diagnostic argument for SharedArchiveFile
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2014-06-23
  • Updated: 2017-05-17
  • Resolved: 2014-10-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 8 JDK 9
8u40Fixed 9 b37Fixed
Related Reports
Relates :  
Description
We currently have this flag just for running unit tests, etc:

  diagnostic(ccstr, SharedArchiveFile, NULL,                                \
          "Override the default location of the CDS archive file")          \

However, as part of the CDS enhancement work (see JDK-8046070), this should be changed into a product flag so that it can be used for normal usage scenarios, without having to specify -XX:+UnlockDiagnosticVMOptions.


The SharedArchiveFile will remain as diagnostic option, however we will add new API for unlocking a specific diagnostic flag:

  unlock_diagnostic()