AArch64: TestUseSHA3IntrinsicsWithUseSHADisabledOnUnsupportedCPU.java fails after JDK-8375443

XMLWordPrintable

    • master
    • aarch64
    • generic

      This test case was introduced in JDK-8375443.
      We encountered the following jtreg failure on Nvidia Grace CPU.

      $ lscpu | grep sha
      Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm ssbs sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh bti

      # Reproduce with fastdebug build
      $ make test TEST=test/hotspot/jtreg/compiler/arguments/TestUseSHA3IntrinsicsWithUseSHADisabledOnUnsupportedCPU.java

      # The snippet of error log

      STDERR:
       stdout: [];
       stderr: [OpenJDK 64-Bit Server VM warning: Temporarily processing option NeverActAsServerClassMachine; support is scheduled for removal in 27.0
      openjdk version "27-internal" 2026-09-15
      OpenJDK Runtime Environment (fastdebug build 27-internal-git-336894857bf)
      OpenJDK 64-Bit Server VM (fastdebug build 27-internal-git-336894857bf, 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\.'.
      Warning should be printed even when UseSHA is explicitly enabled
              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.arguments.TestUseSHA3IntrinsicsWithUseSHADisabledOnUnsupportedCPU.testRemainsDisabledWithUseSHAEnabled(TestUseSHA3IntrinsicsWithUseSHADisabledOnUnsupportedCPU.java:80)
              at compiler.arguments.TestUseSHA3IntrinsicsWithUseSHADisabledOnUnsupportedCPU.main(TestUseSHA3IntrinsicsWithUseSHADisabledOnUnsupportedCPU.java:60)
              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:1527)
      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)
              ... 8 more
                                                                                                
      JavaTest Message: Test threw exception: 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\.'.
      Warning should be printed even when UseSHA is explicitly enabled
      JavaTest Message: shutting down test
                                                                                                                                                                                          
      STATUS:Failed.`main' threw exception: 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\.'. Warning should be printed even when UseSHA is explicitly enabled

            Assignee:
            Ramkumar Sunderbabu
            Reporter:
            Hao Sun
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: