On Wed, 25 Nov 2026 21:32:19 GMT, Mohamed Issa <[email protected]> wrote:
>> The primary reason for this set of changes is to sanity check the >> **doubleKeccak** and **quadKeccak** methods. This includes their >> intrinsified and pure Java variants. The new JTREG source files listed below >> essentially validate return values from keccak methods called via >> `SHA3Parallel::squeezeBlock()`. >> >> 1. `jtreg:test/hotspot/jtreg/compiler/intrinsics/sha/TestInvoke.java` >> 2. >> `jtreg:test/hotspot/jtreg/compiler/intrinsics/sha/sanity/InvokeSanityTestBase.java` >> 3. >> `jtreg:test/hotspot/jtreg/compiler/intrinsics/sha/sanity/TestSHA3ParallelIntrinsics.java` >> >> Additionally, the multi block intrinsic tests now check the correct >> **implCompressMultiBlock0** method. All modifications and tests used >> [OpenJDK v28-b25](https://github.com/openjdk/jdk/releases/tag/jdk-28%2B25) >> as the baseline build. >> >> --------- >> - [x] I confirm that I make this contribution in accordance with the >> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). > > Mohamed Issa has updated the pull request with a new target base due to a > merge or a rebase. The pull request now contains 17 commits: > > - Merge tag 'jdk-28+25' into user/missa-prime/crypto > > Added tag jdk-28+25 for changeset 186489b5 > - Drop reflection API use to avoid problems with certain VM flags and C2 > compiler. > - Use 8386578 instead of 8396624 for invocation test headers. > - Revert changes to files that aren't functionally required. > - Merge tag 'jdk-28+24' into user/missa-prime/crypto > > Added tag jdk-28+24 for changeset f06e15e3 > - Remove check for _quad_keccak stub as that change should be done in > separate PR. > - Use AND predicates in multi-block intrinsic tests in case a VM setting > makes stubs silently unavailable. > - Remove and block tiered compilation from SHA3 parallel tests as that > conflicts with compile threshold setting. > - Fix some more bugs and cleanup VM flag usage. > - Merge branch 'master' into user/missa-prime/crypto > - ... and 7 more: https://git.openjdk.org/jdk/compare/186489b5...c8a3ec82 There appears to be a limitation when using the reflection API. If a VM flag immediately triggers the C2 compiler, invoking methods via reflection doesn't substitute the intrinsic. When the keccak methods are called normally, everything works properly. So, I switched to this approach now. ------------- PR Comment: https://git.openjdk.org/jdk/pull/33709#issuecomment-7175339294
