JDK-5105918 : NEWHPROF: Missing HPROF_GC_CLASS_DUMP in second heap dump
Type:Bug
Component:tools
Sub-Component:hprof
Affected Version:5.0
Priority:P3
Status:Resolved
Resolution:Fixed
OS:generic
CPU:generic
Submitted:2004-09-23
Updated:2004-10-11
Resolved:2004-10-09
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.
NEWHPROF: Missing HPROF_GC_CLASS_DUMP in second heap dump
Comments
CONVERTED DATA
BugTraq+ Release Management Values
COMMIT TO FIX:
mustang
FIXED IN:
mustang
28-09-2004
PUBLIC COMMENTS
Only happens when the binary hprof format is used and there are multiple heap dumps requested (via the Ctrl-\).
###@###.### 2004-09-23
23-09-2004
SUGGESTED FIX
Make sure the CLASS_DUMPED bit is turned off on all classes prior to
a heap dump.
All classes must be dumped at heap dump time because the static fields
could have changed.
------- hprof_site.c -------
***************
*** 636,641 ****
--- 636,644 ----
user_data.i = 0;
+ /* Remove class dumped status, all classes must be dumped */
+ class_all_status_remove(CLASS_DUMPED);
+
/* Dump the last thread traces and get the lists back we need */
tls_dump_traces(env);
###@###.### 2004-09-23
23-09-2004
EVALUATION
Not dumping al classes on a second heap dump.
###@###.### 2004-09-22