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

heapOopSize lookup is incorrect in Serviceability Agent.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: hs15
    • Fix Version/s: hs15
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      svc
    • Resolved In Build:
      b05
    • CPU:
      x86
    • OS:
      windows_2000

      Backports

        Description

        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!

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: