Use hash table to store archived subgraph_info records

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • 12
    • Affects Version/s: 12
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: