There are -Wconversion warnings in gcUtil.hpp/cpp for mostly double to float conversions. The code mostly uses float for AdaptiveWeightedAverage and other statistics but some functions in LinearLeastSquareFit return double.
Changing some of the returns from the slope() functions and a few float casts turns off -Wconversion warnings:
2028 src/hotspot/share/gc/shared/gcUtil.hpp
6 src/hotspot/share/gc/shared/gcUtil.cpp
The reason for so many is that the file is included several times (ie it's only a small number of warnings).
Changing some of the returns from the slope() functions and a few float casts turns off -Wconversion warnings:
2028 src/hotspot/share/gc/shared/gcUtil.hpp
6 src/hotspot/share/gc/shared/gcUtil.cpp
The reason for so many is that the file is included several times (ie it's only a small number of warnings).
- relates to
-
JDK-8177480 Prepare GC code for -Wconversion
-
- Open
-
-
JDK-8177481 Prepare Runtime code for -Wconversion
-
- Closed
-