Details
-
Enhancement
-
Resolution: Fixed
-
P4
-
None
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
-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
Attachments
Issue Links
- relates to
-
JDK-8059092 JEP 250: Store Interned Strings in CDS Archives
-
- Closed
-