Skip to content
Permalink
Browse files

8248235: appcds/jigsaw/PatchModule/Simple.java failed when running in…

… dynamic CDS mode

Reviewed-by: minqi
  • Loading branch information
iklam committed Jun 24, 2020
1 parent 95b9024 commit 1e45eb3b130bfb59827448f563146366afaf961c
Showing with 15 additions and 12 deletions.
  1. +15 −12 test/hotspot/jtreg/runtime/cds/appcds/jigsaw/PatchModule/Simple.java
@@ -33,6 +33,7 @@
* @run driver Simple
*/

import jdk.test.lib.cds.CDSTestUtils;
import jdk.test.lib.compiler.InMemoryJavaCompiler;
import jdk.test.lib.process.OutputAnalyzer;

@@ -78,18 +79,20 @@ public static void main(String args[]) throws Throwable {
.assertSilentlyDisabledCDS(0, "I pass!");

// ========================================
System.out.println("Dump again without --patch-module");
output =
TestCommon.dump(null,
TestCommon.list("javax/naming/spi/NamingManager"));
output.shouldHaveExitValue(0);
if (!CDSTestUtils.DYNAMIC_DUMP) {
System.out.println("Dump again without --patch-module");
output =
TestCommon.dump(null,
TestCommon.list("javax/naming/spi/NamingManager"));
output.shouldHaveExitValue(0);

TestCommon.run(
"-XX:+UnlockDiagnosticVMOptions",
"--patch-module=java.naming=" + moduleJar,
"-Xlog:class+load",
"-Xlog:class+path=info",
"PatchMain", "javax.naming.spi.NamingManager")
.assertSilentlyDisabledCDS(0, "I pass!");
TestCommon.run(
"-XX:+UnlockDiagnosticVMOptions",
"--patch-module=java.naming=" + moduleJar,
"-Xlog:class+load",
"-Xlog:class+path=info",
"PatchMain", "javax.naming.spi.NamingManager")
.assertSilentlyDisabledCDS(0, "I pass!");
}
}
}

0 comments on commit 1e45eb3

Please sign in to comment.
You can’t perform that action at this time.