8308270: ARM32 build broken after JDK-8304913

Reviewed-by: stuefe, rriggs
This commit is contained in:
Boris Ulasevich 2023-05-18 03:14:38 +00:00
parent 902585bec1
commit 83c096d6e2
3 changed files with 13 additions and 0 deletions

View file

@ -37,6 +37,7 @@ public enum Architecture {
X64, // Represents AMD64 and X86_64
X86,
AARCH64,
ARM,
RISCV64,
S390,
PPC64,
@ -85,6 +86,14 @@ public enum Architecture {
return PlatformProps.TARGET_ARCH_IS_PPC64;
}
/**
* {@return {@code true} if the current architecture is ARM}
*/
@ForceInline
public static boolean isARM() {
return PlatformProps.TARGET_ARCH_IS_ARM;
}
/**
* {@return {@code true} if the current architecture is AARCH64}
*/

View file

@ -53,6 +53,7 @@ class PlatformProps {
static final boolean TARGET_ARCH_IS_X64 = "@@OPENJDK_TARGET_CPU@@" == "x64";
static final boolean TARGET_ARCH_IS_X86 = "@@OPENJDK_TARGET_CPU@@" == "x86";
static final boolean TARGET_ARCH_IS_AARCH64 = "@@OPENJDK_TARGET_CPU@@" == "aarch64";
static final boolean TARGET_ARCH_IS_ARM = "@@OPENJDK_TARGET_CPU@@" == "arm";
static final boolean TARGET_ARCH_IS_RISCV64 = "@@OPENJDK_TARGET_CPU@@" == "riscv64";
static final boolean TARGET_ARCH_IS_S390 = "@@OPENJDK_TARGET_CPU@@" == "s390";
static final boolean TARGET_ARCH_IS_PPC64 = "@@OPENJDK_TARGET_CPU@@" == "ppc64";