[BACKOUT] 8359256: AArch64: Use SHA3 GPR intrinsic where it's faster

XMLWordPrintable

    • master
    • aarch64

      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

            Assignee:
            Tobias Hartmann
            Reporter:
            Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: