Details
-
Bug
-
Resolution: Fixed
-
P4
-
11, 13
-
b22
-
other
-
generic
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8265949 | 11.0.12 | Jie Fu | P4 | Resolved | Fixed | b01 |
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
--------------------------------------------
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
- backported by
-
JDK-8265949 test/hotspot/jtreg/compiler/intrinsics/sha/cli/TestUseSHAOptionOnUnsupportedCPU.java fails on any other CPU
- Resolved