United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6822407 heapOopSize lookup is incorrect in Serviceability Agent.
JDK-6822407 : heapOopSize lookup is incorrect in Serviceability Agent.

Details
Type:
Bug
Submit Date:
2009-03-26
Status:
Resolved
Updated Date:
2011-02-16
Project Name:
JDK
Resolved Date:
2009-04-08
Component:
hotspot
OS:
windows_2000
Sub-Component:
svc
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
hs15
Fixed Versions:
hs15 (b05)

Related Reports
Backport:
Backport:
Relates:

Sub Tasks

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!

                                    

Comments
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/f30ba3b36599
                                     
2009-03-27



Hardware and Software, Engineered to Work Together