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

Support caching class mirror objects

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 11
    • Fix Version/s: 11
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b07
    • Verification:
      Verified

      Description

      Currently with G1 GC there are two types of archive-able heap regions, the open archive heap region and closed archive heap region. In open archive heap regions, objects within the region can have out-going references to other regions within the java heap. In JDK 10, the constant pool's resolved_references arrays (with resolved string constants) were supported to be cached in the open archive region at CDS dump time and used in subsequent JVM executions without recreating those array objects. The class mirror objects are good candidate for caching at CDS dump time. The mirrors will be stored in the open archive heap regions as the resolved_references arrays.

      Support G1 GC, 64-bit (non-Windows). Requires UseCompressedOops and UseCompressedClassPointers.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: