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

Resolve JVM_CONSTANT_Class references at CDS dump time

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 20
    • 20
    • hotspot
    • b21

    Description

      This is preparation work for JDK-8293336 - Store LambdaForms in CDS archive heap

      Some JVM_CONSTANT_Class entries are guaranteed to resolve to the same value at both CDS dump time and run time:

      [1] Classes that are resolved during vmClasses::resolve_all(). These classes cannot be replaced by JVMTI agents at run time.

      [2] Supertypes -- at run time, a class C can be loaded from the CDS archive only if all of C's super types are also loaded from the CDS archive. Therefore, we know that a JVM_CONSTANT_Class reference to a supertype of C must resolved to the same value at both CDS dump time and run time.

      By doing the resolution at dump time, we can speed up run time start-up by a little bit.
       

      Attachments

        Issue Links

          Activity

            People

              iklam Ioi Lam
              iklam Ioi Lam
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: