Integrated: 8304915: Create jdk.internal.util.Architecture enum and apply

Roger Riggs rriggs at openjdk.org
Mon May 1 15:41:24 UTC 2023


On Wed, 5 Apr 2023 15:58:08 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

> Define an internal jdk.internal.util.Architecture enumeration and static methods to replace uses of the system property `os.arch`.
> The enumeration values are defined to match those used in the build.
> The initial values are: `X64, X86, AARCH64, RISCV64, S390, PPC64`
> Note that `amd64` and `x86_64` in the build are represented by `X64`.
> The value of the system property `os.arch` is unchanged.
> 
> The API is similar to the jdk.internal.util.OperatingSystem enum created by #[12931](https://git.openjdk.org/jdk/pull/12931).
> Uses in `java.base` and a few others are included but other modules will be done in separate PRs.

This pull request has now been integrated.

Changeset: f00a748b
Author:    Roger Riggs <rriggs at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/f00a748bc5b708d4f8f277d075859b058f9d575c
Stats:     411 lines in 7 files changed: 343 ins; 57 del; 11 mod

8304915: Create jdk.internal.util.Architecture enum and apply

Reviewed-by: erikj, mdoerr, amitkumar

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

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



More information about the build-dev mailing list