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

[lworld] jmap cannot dump heap classes with Q-type fields

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: repo-valhalla
    • Fix Version/s: repo-valhalla
    • Component/s: core-svc
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      > jhsdb.exe jmap --binaryheap --pid 1332

      Attaching to process ID 1332, please wait...
      Debugger attached successfully.
      Server compiler detected.
      JVM version is 18-lworld3ea+0-2021-09-24-1924549.AMENKOV...

      sun.jvm.hotspot.utilities.AssertionFailure: Unknown char in field signature "QTestClass$MyPrimitiveRef;": Q
      at jdk.hotspot.agent/sun.jvm.hotspot.utilities.Assert.that(Assert.java:32)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.FieldType.<init>(FieldType.java:53)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.InstanceKlass.newField(InstanceKlass.java:957)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.InstanceKlass.getFieldByIndex(InstanceKlass.java:758)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.InstanceKlass.getImmediateFields(InstanceKlass.java:772)
      at jdk.hotspot.agent/sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeClassSymbols(HeapHprofBinWriter.java:1092)
      at jdk.hotspot.agent/sun.jvm.hotspot.utilities.HeapHprofBinWriter$4.visit(HeapHprofBinWriter.java:1107)
      at jdk.hotspot.agent/sun.jvm.hotspot.classfile.ClassLoaderData.classesDo(ClassLoaderData.java:107)
      at jdk.hotspot.agent/sun.jvm.hotspot.classfile.ClassLoaderDataGraph.classesDo(ClassLoaderDataGraph.java:84)
      at jdk.hotspot.agent/sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeSymbols(HeapHprofBinWriter.java:1104)
      at jdk.hotspot.agent/sun.jvm.hotspot.utilities.HeapHprofBinWriter.write(HeapHprofBinWriter.java:457)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.JMap.writeHeapHprofBin(JMap.java:216)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.JMap.run(JMap.java:103)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.startInternal(Tool.java:278)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.start(Tool.java:241)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.execute(Tool.java:134)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.JMap.main(JMap.java:202)
      at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.runJMAP(SALauncher.java:340)
      at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.main(SALauncher.java:500)

        Attachments

          Activity

            People

            Assignee:
            amenkov Alex Menkov
            Reporter:
            amenkov Alex Menkov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: