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

Implement detailed map file for CDS

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P3
    • 16
    • 16
    • hotspot
    • b20

    Description

      For analyzing the contents of a CDS archive, we need a "map file" that describes the archive in different levels of detail. This can be done using unified logging:

      (info = high level layout -- regions, etc)
      java -Xshare:dump -Xlog:cds+map=info:file=cds.map:none:filesize=0

      (debug = information about all metaspace objects)
      java -Xshare:dump -Xlog:cds+map=debug:file=cds.map:none:filesize=0

      (trace = values of every byte in the archive)
      java -Xshare:dump -Xlog:cds+map=trace:file=cds.map:none:filesize=0

      For example, we can use the map file for troubleshooting JDK-8253495
      (runtime/cds/DeterministicDump.java broken). We can diff two different cds.map files to see where the non-deterministic contents come from.

      See attachments for example contents of the map file.

      Attachments

        1. cds.map.debug.txt
          10 kB
        2. cds.map.info.txt
          6 kB
        3. cds.map.trace.txt
          73 kB

        Issue Links

          Activity

            People

              iklam Ioi Lam
              iklam Ioi Lam
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: