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

Refactor HeapShared::archive_reachable_objects_from_static_field

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 12
    • Fix Version/s: 12
    • Component/s: hotspot
    • Labels:

      Description

      Currently, the only way to archive an object subgraph is to call HeapShared::archive_reachable_objects_from_static_field, which requires the root to be in a static field of a Java class.

      To support JDK-8198698 (Archive Lambda classes in CDS), we need to store subgraphs from other sources, such as objects stored in ConstantPool::resolved_references().

      Therefore, we need to refactor archive_reachable_objects_from_static_field to move the functionality independent of static fields into a common function.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              iklam Ioi Lam
              Reporter:
              iklam Ioi Lam
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: