RFR: 8286775: Remove identical per-compiler definitions of unsigned integral types

Kim Barrett kbarrett at openjdk.org
Mon Jan 23 10:09:04 UTC 2023


On Mon, 23 Jan 2023 07:42:29 GMT, David Holmes <dholmes at openjdk.org> wrote:

> Trivial update to share the common typedef's.
> 
> Testing: 
>   - Oracle tier 1 - 5 builds
>   - GHA (TBD)
> 
> Thanks.

Looks good.  Or you can take my suggestion and change from typedefs to type aliases.

src/hotspot/share/utilities/globalDefinitions.hpp line 534:

> 532: typedef uint16_t jushort;
> 533: typedef uint32_t juint;
> 534: typedef uint64_t julong;

Suggest `using jubyte = uint8_t;`

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

Marked as reviewed by kbarrett (Reviewer).

PR: https://git.openjdk.org/jdk/pull/12136


More information about the hotspot-dev mailing list