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

_method_ordering is not set during CDS dynamic dump time

    XMLWordPrintable

Details

    • 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

              ccheung Calvin Cheung
              ccheung Calvin Cheung
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: