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

heapOopSize lookup is incorrect in Serviceability Agent.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • hs15
    • hs15
    • hotspot
    • None
    • svc
    • b05
    • x86
    • windows_2000

        heapOopSize is looked up HotspotTypeDataBase.java here:

        private void readVMIntConstants() {
            String symbol = "heapOopSize"; // global int constant and value is initialized at runtime.
            addIntConstant(symbol, (int)lookupInProcess(symbol).getCIntegerAt(0, 4, false));
        }

        This is causing SA failures on some Windows systems.

        sun.jvm.hotspot.debugger.NoSuchSymbolException: Could not find symbol "heapOopSize" in any of the known library names (jvm.dll, jvm_g.dll)
              at sun.jvm.hotspot.HotSpotTypeDataBase.lookupInProcess(HotSpotTypeDataBase.java:390)
              at sun.jvm.hotspot.HotSpotTypeDataBase.readVMIntConstants(HotSpotTypeDataBase.java:310)
              at sun.jvm.hotspot.HotSpotTypeDataBase.<init>(HotSpotTypeDataBase.java:88)
              at sun.jvm.hotspot.bugspot.BugSpotAgent.setupVM(BugSpotAgent.java:565)
              at sun.jvm.hotspot.bugspot.BugSpotAgent.go(BugSpotAgent.java:494)
              at sun.jvm.hotspot.bugspot.BugSpotAgent.attach(BugSpotAgent.java:332)
              at sun.jvm.hotspot.tools.Tool.start(Tool.java:163)
              at sun.jvm.hotspot.tools.PermStat.main(PermStat.java:46)
              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:623)
              at sun.tools.jmap.JMap.runTool(JMap.java:197)
              at sun.tools.jmap.JMap.main(JMap.java:128)
        Debugger attached successfully.
        sun.jvm.hotspot.tools.PermStat requires a java VM process/core!

              poonam Poonam Bajaj Parhar
              poonam Poonam Bajaj Parhar
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: