RFR: 8315066: Add unsigned bounds and known bits to TypeInt/Long [v39]

Quan Anh Mai qamai at openjdk.org
Thu Jan 30 16:14:49 UTC 2025


On Thu, 30 Jan 2025 15:28:13 GMT, Emanuel Peter <epeter at openjdk.org> wrote:

>> Defining a constructor prevents usage of brace initialization :(
>
> That's sad, but it may be worth it. I'm just seeing someone in the future break the constraint... and then having a hard time figuring out what they did wrong 😉

Done!

>> Making a member const would make the whole object kind of const, which is not ideal here.
>
> Why is it not ideal?

I was afraid that we need to use the assignment operator somewhere, but apparently not for this class, made const

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

PR Review Comment: https://git.openjdk.org/jdk/pull/17508#discussion_r1935884505
PR Review Comment: https://git.openjdk.org/jdk/pull/17508#discussion_r1935885179


More information about the hotspot-compiler-dev mailing list