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

Use hash table to store archived subgraph_info records

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 12
    • Fix Version/s: 12
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b15

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: