Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8134448

Document XX:SharedArchiveConfigFile=<shared_input_file>

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 9
    • None
    • docs

    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

      Attachments

        Issue Links

          Activity

            People

              cwayne Clifford Wayne (Inactive)
              jiangli Jiangli Zhou
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: