RFR: 8304915: Create jdk.internal.util.Architecture enum and apply [v4]

Glavo duke at openjdk.org
Thu Apr 6 08:16:19 UTC 2023


On Wed, 5 Apr 2023 23:46:33 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

> Right, it is still possible to run a 32-bit VM build on a 64-bit platform. `os.arch` can be `amd64`, the runtime platform, in this case, but the VM variant can still be 32 bits.

`os.arch` is always the target architecture for JVM, even using 32-bit JVM on 64-bit system, its value remains x86.

But as mentioned above, the size of the address can be independent of these. 

Linux x32 ABI is an ABI for the x86-64 architecture, which uses unique features of 64-bit architectures such as 64-bit registers, but it uses 32-bit addresses.

Although OpenJDK does not support such a platform, technically speaking, it is still necessary to distinguish between architecture bits and address bits.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/13357#discussion_r1159438411



More information about the client-libs-dev mailing list