On Wed, 5 Apr 2023 23:46:33 GMT, Jorn Vernee <jver...@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

Reply via email to