RFR: 8371161: [AArch64] Enable CPU feature UseSHA3Intrinsics for the Qualcomm processor family [v2]

Hao Sun haosun at openjdk.org
Fri Nov 14 10:57:31 UTC 2025


On Tue, 11 Nov 2025 18:11:20 GMT, Dhamoder Nalla <dhanalla at openjdk.org> wrote:

>> This PR makes two targeted AArch64 updates specific to Qualcomm silicon:
>> 
>> 1. Corrects the CPU family enum name typo from CPU_QUALCOM to CPU_QUALCOMM.
>> 2. Enables UseSHA3Intrinsics for Qualcomm (CPU_QUALCOMM) in addition to Apple (CPU_APPLE), allowing Qualcomm-based systems to use hardware-optimized SHA‑3 implementations.
>> 
>> Performance testing:
>> The JMH test case MessageDigests.java is used to evaluate the performance improvements enabled by UseSHA3Intrinsics on Qualcomm CPUs.
>> 
>> 
>> <html xmlns:o="urn:schemas-microsoft-com:office:office"
>> xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
>> xmlns="http://www.w3.org/TR/REC-html40">
>> 
>> <head>
>> 
>> <meta name=ProgId content=OneNote.File>
>> <meta name=Generator content="Microsoft OneNote 15">
>> </head>
>> 
>> <body lang=en-US style='font-family:Calibri;font-size:11.0pt'>
>> 
>> 
>> <div style='direction:ltr;border-width:100%'>
>> 
>> <div style='direction:ltr;margin-top:0in;margin-left:0in;width:12.9277in'>
>> 
>> <div style='direction:ltr;margin-top:0in;margin-left:0in;width:12.9277in'>
>> 
>> <div style='direction:ltr'>
>> 
>> Benchmark | (digesterName) | (length) | (provider) | Mode | Cnt | Score - Before change| Error | Score After change | Error | Units | SHA3   Perf Improvement
>> -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | --
>> MessageDigests.digest | SHA3-256 | 64 | DEFAULT | thrpt | 15 | 4363.650 | ±682.413 | 5687.798 | ±855.826 | ops/ms | 30.34%
>> MessageDigests.digest | SHA3-256 | 16384 | DEFAULT | thrpt | 15 | 45.794 | ±0.069 | 58.735 | ±0.077 | ops/ms | 28.26%
>> MessageDigests.digest | SHA3-512 | 64 | DEFAULT | thrpt | 15 | 4008.741 | ±703.879 | 5145.512 | ±866.479 | ops/ms | 28.36%
>> MessageDigests.digest | SHA3-512 | 16384 | DEFAULT | thrpt | 15 | 23.991 | ±0.032 | 30.294 | ±0.040 | ops/ms | 26.27%
>> MessageDigests.getAndDigest | SHA3-256 | 64 | DEFAULT | thrpt | 15 | 1995.297 | ±396.007 | 2021.385 | ±486.581 | ops/ms | 1.31%
>> MessageDigests.getAndDigest | SHA3-256 | 16384 | DEFAULT | thrpt | 15 | 45.994 | ±0.051 | 58.283 | ±0.095 | ops/ms | 26.72%
>> MessageDigests.getAndDigest | SHA3-512 | 64 | DEFAULT | thrpt | 15 | 1889.550 | ±355.058 | 2173.164 | ±437.968 | ops/ms | 15.01%
>> MessageDigests.getAndDigest | SHA3-512 | 16384 | DEFAULT | thrpt | 15 | 24.411 | ±0.143 | 30.187 | ±0.035 | ops/ms | 23.66%
>> 
>> 
>> 
>> </div>
>> 
>> </div>
>> 
>> </div>
>> 
>> </div>
>> 
>> 
>> </body>
>> 
>> </html>
>
> Dhamoder Nalla has updated the pull request incrementally with two additional commits since the last revision:
> 
>  - [AArch64] Enable CPU feature UseSHA3Intrinsics for the Qualcomm processor family
>  - [AArch64] Enable CPU feature UseSHA3Intrinsics for the Qualcomm processor family

GHA tests are green. Let me sponsor this patch.

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

PR Comment: https://git.openjdk.org/jdk/pull/28166#issuecomment-3532175138


More information about the hotspot-dev mailing list