JDK-8288376 : Release Note: Automatic Generation of the CDS Archive
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 19
  • Priority: P4
  • Status: Resolved
  • Resolution: Delivered
  • Submitted: 2022-06-14
  • Updated: 2022-06-14
  • Resolved: 2022-06-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 19
19Resolved
Description
The JVM option `-XX:+AutoCreateSharedArchive` can be used to automatically create or update a CDS archive for an application. For example:

`java -XX:+AutoCreateSharedArchive -XX:SharedArchiveFile=app.jsa -cp app.jar App`

The specified archive will be written if it does not exist, or if it was generated by a different version of the JDK

For further details, see JDK-8261455.
Comments
Tweaked title per style guide.
14-06-2022