JDK-8280543 : Update the "java" and "jcmd" tool specification for CDS
  • Type: Enhancement
  • Component: docs
  • Sub-Component: hotspot
  • Affected Version: 17,18
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-01-25
  • Updated: 2022-03-23
  • Resolved: 2022-01-31
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 17 JDK 19
17.0.4-oracleFixed 19 b08Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
[1] Warnings text for -Xshare:cds should be updated - similar to JDK-8277241

[2] In the "java" tool specification, under the "Creating a Shared Archive File and Using It to Run an Application", we should add information about creating CDS archives using the "jcmd" command.

Also, since there are several methods for creating a CDS archive (-Xshare:dump vs -XX:CreateArchiveAtExit vs jcmd), we should add an overview section to compare the different methods.

Some clean up is needed:

- Discussion of obsolete flags (such as -XX:UseAppCDS) should be removed.

- Discussion of uncommon error conditions (such as array classes in the classlist) should also be removed.

(Current version: https://docs.oracle.com/en/java/javase/17/docs/specs/man/java.html#application-class-data-sharing )

[3] The "jcmd" tool specification currently has only minimal documentation for the "VM.cds" command. More details should be added.

(Current version:
https://docs.oracle.com/en/java/javase/17/docs/specs/man/jcmd.html )
Comments
A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk17u-dev/pull/277 Date: 2022-03-22 10:46:00 +0000
22-03-2022

Fix Request (17) I'd like to backport this for parity with Oracle. Risk is minimal. PR: https://github.com/openjdk/jdk17u-dev/pull/277 Does not apply cleanly; requires some merging, and removal of mentioning of the new "dynamic_dump" option that's not available on jdk17.
22-03-2022

Changeset: 39165613 Author: Ioi Lam <iklam@openjdk.org> Date: 2022-01-31 21:48:32 +0000 URL: https://git.openjdk.java.net/jdk/commit/39165613aa0430861e361a33a4925b85ea24fff1
31-01-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/7255 Date: 2022-01-28 01:53:09 +0000
28-01-2022

Should be fixed in JDK 19 and backport to 18u and 17u.
25-01-2022