JDK-8259070 : Add jcmd option to dump CDS
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 17
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • Submitted: 2021-01-04
  • Updated: 2022-01-25
  • Resolved: 2021-04-15
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
17 b19Fixed
Related Reports
CSR :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
Supply a jcmd option to dump CDS archive during application running. This has the benefits that
1.  Users don't need to run with -XX:DumpLoadedClassList=<file> first, then run again with -Xshare:dump
2.  Users can chose a moment when they think it is good to dump the archive, that is, a stable state which contains the most classes needed in CDS.
3. For storing MDO in CDS, a moment when most methods already compiled. 
Comments
Changeset: e7cbeba8 Author: Yumin Qi <minqi@openjdk.org> Date: 2021-04-15 05:21:24 +0000 URL: https://git.openjdk.java.net/jdk/commit/e7cbeba8
15-04-2021