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

jmap fails with "field _length not found in type HeapRegionSeq"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • hs25
    • hs25
    • hotspot
    • gc
    • b55

        Test name: gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java

        jmap log:
        Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:491)
        at sun.tools.jmap.JMap.runTool(JMap.java:197)
        at sun.tools.jmap.JMap.main(JMap.java:128)
        Caused by: java.lang.ExceptionInInitializerError
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:414)
        at sun.jvm.hotspot.runtime.VMObjectFactory.newObject(VMObjectFactory.java:58)
        at sun.jvm.hotspot.gc_implementation.g1.G1CollectedHeap.hrs(G1CollectedHeap.java:94)
        at sun.jvm.hotspot.gc_implementation.g1.G1CollectedHeap.n_regions(G1CollectedHeap.java:89)
        at sun.jvm.hotspot.tools.HeapSummary.run(HeapSummary.java:119)
        at sun.jvm.hotspot.tools.Tool.startInternal(Tool.java:238)
        at sun.jvm.hotspot.tools.Tool.start(Tool.java:202)
        at sun.jvm.hotspot.tools.HeapSummary.main(HeapSummary.java:49)
        ... 6 more
        Caused by: java.lang.RuntimeException: field "_length" not found in type HeapRegionSeq
        at sun.jvm.hotspot.types.basic.BasicType.getField(BasicType.java:183)
        at sun.jvm.hotspot.types.basic.BasicType.getField(BasicType.java:190)
        at sun.jvm.hotspot.types.basic.BasicType.getField(BasicType.java:194)
        at sun.jvm.hotspot.types.basic.BasicType.getCIntegerField(BasicType.java:257)
        at sun.jvm.hotspot.gc_implementation.g1.HeapRegionSeq.initialize(HeapRegionSeq.java:60)
        at sun.jvm.hotspot.gc_implementation.g1.HeapRegionSeq.access$000(HeapRegionSeq.java:42)
        at sun.jvm.hotspot.gc_implementation.g1.HeapRegionSeq$1.update(HeapRegionSeq.java:51)
        at sun.jvm.hotspot.runtime.VM.registerVMInitializedObserver(VM.java:401)
        at sun.jvm.hotspot.gc_implementation.g1.HeapRegionSeq.<clinit>(HeapRegionSeq.java:49)
        ... 17 more

              tschatzl Thomas Schatzl
              atimofee Aleksey Timofeev (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: