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

Support old classes in dynamic CDS

    XMLWordPrintable

Details

    Description

      Symptom:

      When old classes are loaded during dynamic CDS dump, they are usually linked during app execution. As part of linking, the class is verified by the old verifier, which is not supported by CDS. As a result, these old classes are not stored in the CDS image.

      Proposed fix:
      Revert the linked old classes to unlinked state, so that they can be verified again during runtime.

      This can be done by parsing the class again and storing the newly parsed (but not linked) InstanceKlass into the CDS archive. Something similar to

      https://github.com/openjdk/jdk/blob/8e4ef818a90de35ae75e7f82a780653d623bb29c/src/hotspot/share/cds/lambdaFormInvokers.cpp#L186




      Attachments

        Issue Links

          Activity

            People

              ccheung Calvin Cheung
              iklam Ioi Lam
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: