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

Use hash table to store archived subgraph_info records

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 12
    • 12
    • hotspot
    • b15

      For each archived java object subgraph, a subgraph_info record is created and stored in the archive file at dump time. These records are searched at runtime to retrieve the information associated with a specific subgraph when it needs to be installed in the entry point (which is usually a static filed), triggered by a VM.initializeFromArchive() call.

      We use an array to store the subgraph_info records. Currently the number of archived subgraph_info records are small (< 10) and the overhead of the liner search is not heavy. When more subgraphs are archived in the future and the number of records grows, we should consider using a hashtable to store the archived subgraph info records.

            iklam Ioi Lam
            jiangli Jiangli Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: