Integrated: 8300227: [macos_aarch64] assert(cpu_has("hw.optional.arm.FEAT_AES")) failed after JDK-8297092
Hao Sun
haosun at openjdk.org
Tue Jan 17 06:47:13 UTC 2023
On Tue, 17 Jan 2023 06:27:15 GMT, Hao Sun <haosun at openjdk.org> wrote:
> This failure occurs on macOS before xnu-8019 version, mainly because the sysctlbyname string names were not introduced before xnu-8019. Take the source code of xnu-7195 [1] as an example.
>
> In this patch, we remove the assertions for the sake of backward compatibility.
>
> Test:
> In my local test environment, one Macmini with xnu-8020.140.41 and another Macmini with xnu-7195.141.6, fastdebug build can pass now and the CPU features can be detected as expected.
>
>
> $ ./jdk/bin/java -XX:+PrintFlagsFinal --version | grep SHA
> bool UseSHA = true {product} {default}
> bool UseSHA1Intrinsics = true {diagnostic} {default}
> bool UseSHA256Intrinsics = true {diagnostic} {default}
> bool UseSHA3Intrinsics = true {diagnostic} {default}
> bool UseSHA512Intrinsics = true {diagnostic} {default}
>
>
> [1] https://github.com/apple-oss-distributions/xnu/blob/rel/xnu-7195/bsd/kern/kern_mib.c#L855
This pull request has now been integrated.
Changeset: f829a679
Author: Hao Sun <haosun at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/f829a67935328824d2465d9073107cda7eaaf216
Stats: 4 lines in 1 file changed: 0 ins; 0 del; 4 mod
8300227: [macos_aarch64] assert(cpu_has("hw.optional.arm.FEAT_AES")) failed after JDK-8297092
Reviewed-by: dholmes
-------------
PR: https://git.openjdk.org/jdk/pull/12022
More information about the hotspot-runtime-dev
mailing list