JDK-8209942 : [epsilon] range function for EpsilonTLABElasticity causes compiler warning
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 11,12
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-08-24
  • Updated: 2018-10-11
  • Resolved: 2018-09-05
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 11
Reported by ralf.schmelter@sap.com:

The flag -XX:EpsilonTLABElasticity (epsilon_globals.hpp, line 77) expects a double value, but uses max_intx in the allowed range. This leads to a truncation warning in the Windows build. If the value should only be guaranteed to be >= 1, then DBL_MAX should have been used instead.
Fix request The fix fixes the Windows VS2017 builds , it allows clean builds without warnings-as-erros disabled. That's why it is important for us to have it in jdk11u as well. I checked that the fix could be applied to jdk11u and could qimport + qpush it without any warnings/errors. So please bring it to jdk11u .

compilation error without the fix is (when running with VS2017 update level 15.8 and not disabling warnings as errors ) : C:/jdk-just-clone/src/hotspot/share/runtime/flags/jvmFlagRangeList.cpp(341): error C2220: warning treated as error - no 'object' file generated C:/jdk-just-clone/src/hotspot/share/runtime/flags/jvmFlagRangeList.cpp(341): warning C4305: 'argument': truncation from 'const intx' to 'double'