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

Run class initialization for boot loader classes with registered subgraph archiving entry field during CDS dump time

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 12
    • Fix Version/s: 12
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b20

      Description

      Claes discovered that the Long cache is not populated during CDS dump time during the work for JDK-8213033. As a result, the Long cache and associated Long objects cannot be archived.

      Archiving the Long cache is beneficial for string concatenation, for example. As we now support archiving subgraphs in the closed archive heap region, archiving the remaining primitive box caches can help providing more memory sharing at runtime.

      During CDS dump time, we can force initialization for classes with registered subgraph archiving entry field for the boot loader. Running the initializers can populate the static fields for those classes, including the primitive box caches. As a result, it will allow the primitive caches to be archived at dump time.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: