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

Add locking in HeapShared::initialize_from_archived_subgraph

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: 12
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Introduced In Version:
      12

      Description

      HeapShared::initialize_from_archived_subgraph(Klass*) is triggered to initialize all classes for objects enclosed in the subgraph(s) (related to the requesting Klass) and install the subgraph(s) back to the requesting Klass's entry fields. Currently all archived subgraphs are initialized and installed during JVM bootstrapping at runtime, no locking is done.

      In the future, with new subgraphs are added to the archive, we probably need to add locking in HeapShared::initialize_from_archived_subgraph(Klass*) to avoid any potential race condition.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jiangli Jiangli Zhou
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: