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: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 18
    • Fix Version/s: 19
    • Component/s: hotspot
    • Labels:

      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

          Activity

            People

            Assignee:
            minqi Yumin Qi
            Reporter:
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: