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

jcmd VM.cds dynamic_dump should not regenerate holder classes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 19
    • 18
    • hotspot
    • b08

      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.

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

              Created:
              Updated:
              Resolved: