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

jcmd VM.cds dynamic_dump should not regenerate holder classes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 18
    • Fix Version/s: 19
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b08

      Description

      https://github.com/openjdk/jdk/blob/ca2efb73f59112d9be2ec29db405deb4c58dd435/src/hotspot/share/cds/metaspaceShared.cpp#L645

      void MetaspaceShared::link_shared_classes(TRAPS) {
        LambdaFormInvokers::regenerate_holder_classes(CHECK); << here

      This causes new holder classes to be stored into the dictionary of the boot class loader. Since the VM will continue to execute after "VM.cds dynamic_dump" has finished, the existence of these classes may have unexpected results.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              minqi Yumin Qi (Inactive)
              Reporter:
              iklam Ioi Lam
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: