JDK-4965057 : HPROF: format=b output does not include primitive data
  • Type: Bug
  • Component: tools
  • Sub-Component: hprof
  • Affected Version: 5.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2003-12-08
  • Updated: 2005-09-30
  • Resolved: 2005-09-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 b55Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Description
NEWHPROF: format=b output does not include primitive data

The JVMTI interface does not provide primitive data for instances of classes
or for static fields.  

The static fields primitive data could be read via JNI, if JNI can be called 
at that time (might not be able to call JNI during heap iteration).
Arrays of primitives may need special handling.

The instance field primitive data is a little trickier, and may need JVMTI
help.

Comments
SUGGESTED FIX Changes are too significant to list here. See files hprof_site.c and hprof_reference.c.
20-09-2005

EVALUATION hprof has been changes to use FollowReferences and changes to save away the references and primitive data together during the FollowReferences pass. After that pass then the saved data is traversed to generate the hprof heap dump data.
20-09-2005

EVALUATION Problem understood. ###@###.### 2003-12-08 ###@###.### 2005-03-11 17:33:45 GMT As the new FollowReferences function allows the agent get access to primitive field values we should update HPROF. ###@###.### 2005-06-09 13:04:57 GMT
11-03-2005