RFR: 8375443: AVX-512: Disabling through UseSHA doesn't affect UseSHA3Intrinsics

Ramkumar Sunderbabu rsunderbabu at openjdk.org
Fri Jan 16 10:16:40 UTC 2026


On Fri, 16 Jan 2026 09:43:10 GMT, Manuel Hässig <mhaessig at openjdk.org> wrote:

>> UseSHA flag is not respected while enabling/disabling UseSHA3Intrinsics flag in x86 builds.
>> Added UseSHA in the mix.
>> 
>> Testing: Only Basic testing done. I will run more compiler related testing.
>
> src/hotspot/cpu/x86/vm_version_x86.cpp line 1349:
> 
>> 1347:       }
>> 1348:   } else if (UseSHA3Intrinsics) {
>> 1349:       warning("Intrinsics for SHA3-224, SHA3-256, SHA3-384 and SHA3-512 crypto hash functions not available on this CPU.");
> 
> This warning might be a bit misleading when `-XX:-UseSHA -XX:+UseSHA3Intrinsics` is passed on a machine that supports the instructions.

This warning is consistent across platforms. I will probably create another bug and fix this.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29266#discussion_r2697862564


More information about the hotspot-dev mailing list