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

_method_ordering is not set during CDS dynamic dump time

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 13
    • Fix Version/s: 14
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b18

      Description

      The InstanceKlass' _method_ordering is not set during CDS dynamic dump time. This results in the following assert if JDWP option is used during runtime and a debugger is attached to the suspended java process.
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (open/src/hotspot/share/oops/instanceKlass.cpp:3615), pid=32154, tid=32155
      # guarantee(length == methods()->length()) failed: invalid method ordering length

      To reproduce:
      1. Insert the following JDWP option in the runtime command line with a CDS dynamic archive:
          -Xrunjdwp:transport=dt_socket,server=y,address=8888,suspend=y

      2. Attach a debugger to the java process, e.g.
          jdb -attach 8888

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ccheung Calvin Cheung
                Reporter:
                ccheung Calvin Cheung
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: