United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6315235 SA: jmap heap dumper does not use correct class ID for object arrays
JDK-6315235 : SA: jmap heap dumper does not use correct class ID for object arrays

Details
Type:
Bug
Submit Date:
2005-08-24
Status:
Resolved
Updated Date:
2010-08-24
Project Name:
JDK
Resolved Date:
2005-09-17
Component:
core-svc
OS:
generic
Sub-Component:
tools
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports
Backport:
Backport:
Relates:

Sub Tasks

Description
hprof binary format requires that HPROF_GC_OBJ_ARRAY_DUMP records should refer to class ID of array's class (instead of the class ID of the element type -  jmap heap dumper uses element class ID.). That is, if there's an array of Foo, this field points to the class "Foo[]", not to the class "Foo".  The element type is "Foo". (refer to 5096280 as well).

                                    

Comments
SUGGESTED FIX

Webrevs: 

http://bongo.india/debugging/sa/6315235/1.6.0/webrev/
http://bongo.india/debugging/sa/6315235/1.5.0/webrev/
http://bongo.india/debugging/sa/6315235/1.4.2/webrev/

Also, refer to attachment "webrev.tar" (1.6.0), "1.5.0_webrev.tar" and "1.4.2_webrev.tar"
                                     
2005-09-02
EVALUATION

Please refer to "Suggested Fix" for changes to use correct class ID for object arrays.
                                     
2005-09-02



Hardware and Software, Engineered to Work Together