RFR: [type-classes] 8377123: Add SIZE and BYTES static fields to UnsignedInt

Maurizio Cimadamore mcimadamore at openjdk.org
Wed Feb 4 09:57:41 UTC 2026


On Tue, 3 Feb 2026 23:23:36 GMT, Joe Darcy <darcy at openjdk.org> wrote:

> Add SIZE and BYTES fields to UnsignedInt, analagous to those fields from java.lang.Integer.

Looks good -- not sure if we should mention the word "flat" anywhere (e.g. in the field name, or in the javadoc) -- after all, an UnsignedInt instance is 4 bytes only when flattened and null-restricted. Maybe MIN_SIZE/MIN_BYTES :-)

We can also settle on the name later...

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

Marked as reviewed by mcimadamore (Committer).

PR Review: https://git.openjdk.org/valhalla/pull/2028#pullrequestreview-3750077360


More information about the valhalla-dev mailing list