United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7016998 gcutil class LinearLeastSquareFit doesn't initialize some of its fields
JDK-7016998 : gcutil class LinearLeastSquareFit doesn't initialize some of its fields

Details
Type:
Bug
Submit Date:
2011-02-03
Status:
Closed
Updated Date:
2011-03-25
Project Name:
JDK
Resolved Date:
2011-03-08
Component:
hotspot
OS:
generic
Sub-Component:
gc
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
hs21,7
Fixed Versions:
hs21 (b02)

Related Reports
Backport:
Duplicate:
Duplicate:

Sub Tasks

Description
Reported by Donald Gregg at Westinghouse.

In src/share/vm/gc_implementation/shared/gcUtil.*, the constructor for LinearLeastSquareFit
does not initialize members _sum_x_squared, _intercept or _slope.  They should be initiazed
to zero.

                                    

Comments
SUGGESTED FIX

In gcUtil.cpp

109,110c109,110
<   _sum_x(0), _sum_x_squared(0), _sum_y(0), _sum_xy(0),
<   _intercept(0), _slope(0), _mean_x(weight), _mean_y(weight) {}
---
>   _sum_x(0), _sum_y(0), _sum_xy(0),
>   _mean_x(weight), _mean_y(weight) {}
                                     
2011-02-03
EVALUATION

This was nominally fixed by 6578316, but the fix somehow was never integrated.
                                     
2011-02-03



Hardware and Software, Engineered to Work Together