On Fri, 19 May 2023 19:19:40 GMT, Roger Riggs <[email protected]> wrote:
> The internal enum jdk.internal.util.Architecture does not provide information > about the big or little endianness or the address size (64 or 32 bits). The > endian-ness and address size are intrinsic to the architecture. > > The values of the enum are extended to separately identify the big endian and > little-endian uses of the ISA. > For example, `PPC64` and `PPC64LE` for the big and little-endian versions. > The enum values directly reflect the build-time artifacts and resulting > executables. > > This information about an architecture will make the enum more useful > especially to identify a target platform in a cross-platform use case. A > method is added to map well known aliases for the platforms to the > Architecture enum. This pull request has now been integrated. Changeset: d6dd0dc3 Author: Roger Riggs <[email protected]> URL: https://git.openjdk.org/jdk/commit/d6dd0dc3e06d42f108fe80920e1102d47a5aa583 Stats: 191 lines in 5 files changed: 121 ins; 46 del; 24 mod 8308452: Extend internal Architecture enum with byte order and address size Reviewed-by: mdoerr, jpai, mchung, amitkumar ------------- PR: https://git.openjdk.org/jdk/pull/14063
