JDK-8134448 : Document XX:SharedArchiveConfigFile=
  • Type: Enhancement
  • Component: docs
  • Sub-Component: tools
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-08-25
  • Updated: 2017-09-08
  • Resolved: 2017-09-08
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 9
9Fixed
Related Reports
Relates :  
Description
The following new command-line option was added in JDK9:
 
  -XX:SharedArchiveConfigFile=<shared_config_file>

The option is used to specify additional shared data added to the archive file. Currently it supports strings and symbols. The string data and symbol data should be generated by the 'jcmd' tool attaching to a running JVM process.
 
Example of sting and symbol dumping command in icmd:
 
  jcmd <pid> VM.stringtable -verbose
 
  jcmd <pid> VM.symboltable -verbose
 
Config file example:
 
  VERSION: 1.0
  @SECTION: String
  7: test123
  1: *
  8: segments
  @SECTION: Symbol
  10 -1: linkMethod
 
@SECTION specifies the type of the section that follows it.  All data within the section must be the same type that's specified by @SECTION. Different types of data cannot be mixed.
 
Multiple separated data sections for the same type specified by different @SECTION are allowed within one config file
Comments
Final set of Oracle Review comments have been incorporated and closed.
08-09-2017

This was added to the "Application Class Data Sharing" section in the Tools Ref doc. It is a commercial feature so it was filtered out of the EA release docs. There is no separate user guide for this one. http://review.us.oracle.com/review2/Review.html#reviewId=311171;scope=document;status=open,fixed;documentId=1622012;fragment=GUID-31503FCE-93D0-4175-9B4F-F6A738B2F4C4
19-07-2017

This is in an area that Shilpa is already working
15-12-2016