JDK-8265392 : VM crashes if both -XX:+RecordDynamicDumpInfo and -XX:SharedArchiveFile options are specified
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 17
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2021-04-17
  • Updated: 2021-04-17
  • Resolved: 2021-04-17
Related Reports
Duplicate :  
Description
JDK-8259070 adds a functionality to jcmd for dumping CDS archive on a running java process.

To reproduce the issue:
1. Start a java app.
2. While the app is still running, use jcmd to create a dynamic CDS archive:
    e.g. jcmd <pid> VM.cmd dynamic_dump
3. Run the app again with the dynamic CDS archive and the -XX:+RecordDynamicDumpInfo option:
    e.g. java  -XX:+RecordDynamicDumpInfo -XX:SharedArchiveFile=java_pid<pid>_dynamic.jsa -cp myApp.jar myApp
Comments
After I hit the "Create" button, there was a error from Jira but it created this bug anyway. Closing it as a duplicate.
17-04-2021