JDK-8281455 : Change JVM options with small ranges from 64 to 32 bits
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 19
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2022-02-08
  • Updated: 2023-01-09
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.
Other
tbdUnresolved
Sub Tasks
JDK-8289534 :  
Description
The declarations of JVM options, whose ranges are small values, should be changes from 64 bits to 32 bits.  For example, AdaptiveTimeWeight is declared as a uintx but need only be a uint.

   product(uintx, AdaptiveTimeWeight,       25,                              \
           "Weight given to time in adaptive policy, between 0 and 100")     \
           range(0, 100)                                                     \

Changing AdaptiveTimeWeight to a uint prevents -Wconversion compiler warnings when it is assigned to variables declared as uint's.