United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6495056 Badly formed debug statement in ReferenceProcessor::delete_null_referents_from_lists
JDK-6495056 : Badly formed debug statement in ReferenceProcessor::delete_null_referents_from_lists

Details
Type:
Bug
Submit Date:
2006-11-17
Status:
Resolved
Updated Date:
2010-04-03
Project Name:
JDK
Resolved Date:
2007-04-05
Component:
hotspot
OS:
generic
Sub-Component:
gc
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
1.4.2_13
Fixed Versions:
1.4.2_15 (b01)

Related Reports

Sub Tasks

Description
Using -XX options TraceReferenceGC and PrintGCDetails crashes 
hotspot.  We have lost part of a debug statement in 
ReferenceProcessor::delete_null_referents_from_lists which 
results in a null-pointer being followed. (a %s in a format
string with no follow-on argument provided)

                                    

Comments
SUGGESTED FIX

In 1.4.2 we should probably print_cr a simple string for each 
of the 4 subsequent calls to delete_null_referents().
                                     
2006-11-17
EVALUATION

1.4.2_13

073 void ReferenceProcessor::delete_null_referents_from_lists() {
074   // loop over the lists
075   if (TraceReferenceGC && PrintGCDetails) {
076     gclog_or_tty->print_cr(
077         "\nScrubbing %s discovered list of Null referents");  // FAULT
078   } 


This line is from 5.0, but is not appropriate in 1.4.2.
                                     
2006-11-17



Hardware and Software, Engineered to Work Together