JDK-8371432 : [BACKOUT] 8359256: AArch64: Use SHA3 GPR intrinsic where it's faster
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 26
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • CPU: aarch64
  • Submitted: 2025-11-06
  • Updated: 2025-11-07
  • Resolved: 2025-11-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 26
26 masterFixed
Related Reports
Relates :  
Description
sun/security/provider/all/Deterministic.java and sun/security/provider/acvp/Launcher.java are crashing ~StubRoutines::double_keccak.

# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGILL (0x4) at pc=0x0000ffff7f9b4c6c, pid=3405479, tid=3405504
#
# JRE version: Java(TM) SE Runtime Environment (26.0+23) (build 26-ea+23-2385)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (26-ea+23-2385, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
# Problematic frame:
# v  ~StubRoutines::double_keccak 0x0000ffff7f9b4c6c
#

Stack: [0x0000ffff431ae000,0x0000ffff433ac000],  sp=0x0000ffff433a98c0,  free space=2030k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
v  ~StubRoutines::double_keccak 0x0000ffff7f9b4c6c

siginfo: si_signo: 4 (SIGILL), si_code: 1 (ILL_ILLOPC), si_addr: 0x0000ffff7f9b4c6c


compiler/intrinsics/sha/cli/TestUseSHA3IntrinsicsOptionOnSupportedCPU.java and compiler/intrinsics/sha/cli/TestUseSHA3IntrinsicsOptionOnUnsupportedCPU.java are failing when checking the Intrinsics for SHA algorithms.

----------System.err:(31/2573)----------
 stdout: [];
 stderr: [java version "26-ea" 2026-03-17
Java(TM) SE Runtime Environment (fastdebug build 26-ea+23-2385)
Java HotSpot(TM) 64-Bit Server VM (fastdebug build 26-ea+23-2385, mixed mode, sharing)
]
 exitValue = 0

java.lang.AssertionError: Expected message not found: 'Intrinsics for SHA3-224, SHA3-256, SHA3-384 and SHA3-512 crypto hash functions not available on this CPU.'.
If JVM is started with '-XX:-UseSHA' '-XX:+UseSHA3Intrinsics', output should contain warning.
	at jdk.test.lib.cli.CommandLineOptionTest.verifyOutput(CommandLineOptionTest.java:159)
	at jdk.test.lib.cli.CommandLineOptionTest.verifyJVMStartup(CommandLineOptionTest.java:130)
	at jdk.test.lib.cli.CommandLineOptionTest.verifySameJVMStartup(CommandLineOptionTest.java:211)
	at compiler.intrinsics.sha.cli.testcases.GenericTestCaseForUnsupportedCPU.verifyWarnings(GenericTestCaseForUnsupportedCPU.java:73)
	at compiler.intrinsics.sha.cli.DigestOptionsBase$TestCase.test(DigestOptionsBase.java:162)
	at compiler.intrinsics.sha.cli.DigestOptionsBase.runTestCases(DigestOptionsBase.java:139)
	at jdk.test.lib.cli.CommandLineOptionTest.test(CommandLineOptionTest.java:544)
	at compiler.intrinsics.sha.cli.TestUseSHA3IntrinsicsOptionOnUnsupportedCPU.main(TestUseSHA3IntrinsicsOptionOnUnsupportedCPU.java:50)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
	at java.base/java.lang.reflect.Method.invoke(Method.java:565)
	at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
	at java.base/java.lang.Thread.run(Thread.java:1474)
Caused by: java.lang.RuntimeException: 'Intrinsics for SHA3-224, SHA3-256, SHA3-384 and SHA3-512 crypto hash functions not available on this CPU.' missing from stdout/stderr
	at jdk.test.lib.process.OutputAnalyzer.shouldMatch(OutputAnalyzer.java:407)
	at jdk.test.lib.cli.CommandLineOptionTest.verifyOutput(CommandLineOptionTest.java:154)
	... 11 more
Comments
Changeset: 3d6824e8 Branch: master Author: Tobias Hartmann <thartmann@openjdk.org> Date: 2025-11-07 09:19:18 +0000 URL: https://git.openjdk.org/jdk/commit/3d6824e802bda6efed40f7613eda7c8c0d84e673
07-11-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/28189 Date: 2025-11-07 07:55:24 +0000
07-11-2025

We now see more failures with other tests in higher tiers. Let's do a backout. I filed JDK-8371459 for the REDO.
07-11-2025

ILW = SIGILL in stub, multiple tests, disable stub with -XX:-UseSHA3Intrinsics = HMM = P2
07-11-2025

All tests failed with no external flags.
06-11-2025

[~dchuyko] please look.
06-11-2025