JDK-7016998 : gcutil class LinearLeastSquareFit doesn't initialize some of its fields
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: hs21,7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-02-03
  • Updated: 2011-03-25
  • Resolved: 2011-03-08
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 7 Other
7Fixed hs21Fixed
Related Reports
Duplicate :  
Duplicate :  
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) {}
03-02-2011

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