Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8222302

test/hotspot/jtreg/compiler/intrinsics/sha/cli/TestUseSHAOptionOnUnsupportedCPU.java fails on any other CPU

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b22
    • CPU:
      other
    • OS:
      generic

      Backports

        Description

        ## Symptom
        --------------------------------------------
        Running compiler.intrinsics.sha.cli.testcases.UseSHASpecificTestCaseForUnsupportedCPU
        STDERR:
        java.lang.Error: Support for CPUs different from AARCH64, S390x, SPARC, X86, and PPC is not implemented
                at compiler.intrinsics.sha.cli.SHAOptionsBase.getWarningForUnsupportedCPU(SHAOptionsBase.java:92)
                at compiler.intrinsics.sha.cli.testcases.UseSHASpecificTestCaseForUnsupportedCPU.verifyWarnings(UseSHASpecificTestCaseForUnsupportedCPU.java:58)
                at compiler.intrinsics.sha.cli.SHAOptionsBase$TestCase.test(SHAOptionsBase.java:152)
                at compiler.intrinsics.sha.cli.SHAOptionsBase.runTestCases(SHAOptionsBase.java:129)
                at jdk.test.lib.cli.CommandLineOptionTest.test(CommandLineOptionTest.java:537)
                at compiler.intrinsics.sha.cli.TestUseSHAOptionOnUnsupportedCPU.main(TestUseSHAOptionOnUnsupportedCPU.java:59)
                at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.base/java.lang.reflect.Method.invoke(Method.java:566)
                at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
                at java.base/java.lang.Thread.run(Thread.java:834)
        --------------------------------------------

        ## Summary
        TestUseSHAOptionOnUnsupportedCPU.java fails on any other CPU (not AArch64, PPC, S390x, SPARC or X86).
        It can be always reproduced on any other CPU.

        It is designed to test "UseSHASpecificTestCaseForUnsupportedCPU"[1] and "GenericTestCaseForOtherCPU"[2] on any other CPU[3].
        But when they run on any other CPU (e.g., mips), an exception[4] is always thrown, which causes the failure.
        So there seems to be a logical bug in it.

        [1] http://hg.openjdk.java.net/jdk/jdk/file/bf07e140c49c/test/hotspot/jtreg/compiler/intrinsics/sha/cli/TestUseSHAOptionOnUnsupportedCPU.java#l56
        [2] http://hg.openjdk.java.net/jdk/jdk/file/bf07e140c49c/test/hotspot/jtreg/compiler/intrinsics/sha/cli/TestUseSHAOptionOnUnsupportedCPU.java#l58
        [3] http://hg.openjdk.java.net/jdk/jdk/file/bf07e140c49c/test/hotspot/jtreg/compiler/intrinsics/sha/cli/testcases/GenericTestCaseForOtherCPU.java#l34
        [4] http://hg.openjdk.java.net/jdk/jdk/file/bf07e140c49c/test/hotspot/jtreg/compiler/intrinsics/sha/cli/SHAOptionsBase.java#l92

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                jiefu Jie Fu
                Reporter:
                jiefu Jie Fu
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: