-
Bug
-
Resolution: Fixed
-
P4
-
15
-
b24
Currently, in Oracle tier4-rt-appcds-dynamic, we run with
jtreg -Dtest.dynamic.cds.archive=true test/hotspot/jtreg:hotspot_appcds_dynamic
However, some JDK builds (e.g., cross-compiled aarch64 builds) may include a default CDS archive (usually found under $JAVA_HOME/lib/server/classes.jsa). This causes failures like:
-----------
stdout: [Error occurred during initialization of VM
Unable to use shared archive.
];
stderr: [An error has occurred while processing the shared archive file.
Specified shared archive not found (/test/jdk-15/fastdebug/lib/server/classes.jsa).
]
exitValue = 1
java.lang.RuntimeException: 'Written dynamic archive' missing from stdout/stderr
at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:187)
at TestCommon.testDump(TestCommon.java:472)
at InstrumentationTest.runTest(InstrumentationTest.java:137)
at InstrumentationTest.main(InstrumentationTest.java:74)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
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.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:832)
jtreg -Dtest.dynamic.cds.archive=true test/hotspot/jtreg:hotspot_appcds_dynamic
However, some JDK builds (e.g., cross-compiled aarch64 builds) may include a default CDS archive (usually found under $JAVA_HOME/lib/server/classes.jsa). This causes failures like:
-----------
stdout: [Error occurred during initialization of VM
Unable to use shared archive.
];
stderr: [An error has occurred while processing the shared archive file.
Specified shared archive not found (/test/jdk-15/fastdebug/lib/server/classes.jsa).
]
exitValue = 1
java.lang.RuntimeException: 'Written dynamic archive' missing from stdout/stderr
at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:187)
at TestCommon.testDump(TestCommon.java:472)
at InstrumentationTest.runTest(InstrumentationTest.java:137)
at InstrumentationTest.main(InstrumentationTest.java:74)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
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.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:832)
- duplicates
-
JDK-8243207 Increase AppCDS test coverage with ZGC
-
- Closed
-