RFR: 8308850: Change JVM options with small ranges from 64 to 32 bits, for globals.hpp

Dean Long dlong at openjdk.org
Fri Aug 4 22:54:30 UTC 2023


On Fri, 4 Aug 2023 17:41:50 GMT, Afshin Zafari <azafari at openjdk.org> wrote:

> The JVM options that are in range of `int` type are converted in `globals.hpp` and other files where affected.
> 
> ### Tests
> tiers 1-4 passed for linux-x64, linux-x64-debug, windows-x64, windows-x64-debug
> tier1 all passed.

I know HotSpot code is not very careful about distinguishing between int and uint, but shouldn't we prefer uint for values that can't be negative?  The disadvantage of uint though is will we get more -Wsign-conversion warnings to fix when that warning gets turned on.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/15164#issuecomment-1666252138


More information about the graal-dev mailing list