Details
-
Bug
-
Resolution: Fixed
-
P4
-
14
-
b20
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8246463 | 13.0.4 | Jie Fu | P4 | Resolved | Fixed | b04 |
JDK-8235854 | 11.0.7-oracle | Jie Fu | P4 | Resolved | Fixed | b01 |
JDK-8236577 | 11.0.7 | Jie Fu | P4 | Resolved | Fixed | b01 |
Description
* Reproduce
-------------------------------------
bash configure --disable-cds ...
make test TEST="compiler/aot/fingerprint/SelfChangedCDS.java"
-------------------------------------
* Symptom
-------------------------------------
[2019-10-21T09:04:57.836317Z] Gathering output for process 20161
[stdout = ]
[stderr = Shared spaces are not supported in this VM
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
]
[2019-10-21T09:04:57.845238Z] Waiting for completion for process 20161
[2019-10-21T09:04:57.845290Z] Waiting for completion finished for process 20161
STDERR:
stdout: [];
stderr: [Shared spaces are not supported in this VM
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
]
exitValue = 1
java.lang.RuntimeException: 'Loading classes to share' missing from stdout/stderr
at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:187)
at compiler.aot.fingerprint.CDSDumper.main(CDSDumper.java:66)
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:564)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
at java.base/java.lang.Thread.run(Thread.java:830)
-------------------------------------
* Fix
-------------------------------------
diff -r f87353679927 test/hotspot/jtreg/compiler/aot/fingerprint/SelfChangedCDS.java
--- a/test/hotspot/jtreg/compiler/aot/fingerprint/SelfChangedCDS.java Mon Oct 21 14:04:16 2019 +0800
+++ b/test/hotspot/jtreg/compiler/aot/fingerprint/SelfChangedCDS.java Mon Oct 21 17:14:37 2019 +0800
@@ -27,7 +27,7 @@
* @library /test/lib /
* @modules java.base/jdk.internal.misc
* java.management
- * @requires vm.aot
+ * @requires vm.aot & vm.cds
* @build compiler.aot.fingerprint.SelfChanged
* compiler.aot.AotCompiler
*
-------------------------------------
-------------------------------------
bash configure --disable-cds ...
make test TEST="compiler/aot/fingerprint/SelfChangedCDS.java"
-------------------------------------
* Symptom
-------------------------------------
[2019-10-21T09:04:57.836317Z] Gathering output for process 20161
[stdout = ]
[stderr = Shared spaces are not supported in this VM
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
]
[2019-10-21T09:04:57.845238Z] Waiting for completion for process 20161
[2019-10-21T09:04:57.845290Z] Waiting for completion finished for process 20161
STDERR:
stdout: [];
stderr: [Shared spaces are not supported in this VM
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
]
exitValue = 1
java.lang.RuntimeException: 'Loading classes to share' missing from stdout/stderr
at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:187)
at compiler.aot.fingerprint.CDSDumper.main(CDSDumper.java:66)
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:564)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
at java.base/java.lang.Thread.run(Thread.java:830)
-------------------------------------
* Fix
-------------------------------------
diff -r f87353679927 test/hotspot/jtreg/compiler/aot/fingerprint/SelfChangedCDS.java
--- a/test/hotspot/jtreg/compiler/aot/fingerprint/SelfChangedCDS.java Mon Oct 21 14:04:16 2019 +0800
+++ b/test/hotspot/jtreg/compiler/aot/fingerprint/SelfChangedCDS.java Mon Oct 21 17:14:37 2019 +0800
@@ -27,7 +27,7 @@
* @library /test/lib /
* @modules java.base/jdk.internal.misc
* java.management
- * @requires vm.aot
+ * @requires vm.aot & vm.cds
* @build compiler.aot.fingerprint.SelfChanged
* compiler.aot.AotCompiler
*
-------------------------------------
Attachments
Issue Links
- backported by
-
JDK-8235854 [TESTBUG] compiler/aot/fingerprint/SelfChangedCDS.java fails when cds is disabled
- Resolved
-
JDK-8236577 [TESTBUG] compiler/aot/fingerprint/SelfChangedCDS.java fails when cds is disabled
- Resolved
-
JDK-8246463 [TESTBUG] compiler/aot/fingerprint/SelfChangedCDS.java fails when cds is disabled
- Resolved