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

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 12
    • 12
    • hotspot
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: