Skip to content

Commit

Permalink
8305421: Work around JDK-8305420 in CDSJDITest.java
Browse files Browse the repository at this point in the history
Backport-of: 9ce5fdc
  • Loading branch information
i556354 authored and GoeLin committed Jul 11, 2023
1 parent c9194e7 commit f956352
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/jdk/com/sun/jdi/cds/CDSJDITest.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -61,7 +61,6 @@ public static void runTest(String testname, String[] jarClasses) throws Exceptio
// pass them as JVM arguments to the debuggee process it creates.
"-Xbootclasspath/a:" + appJar,
"-XX:+UnlockDiagnosticVMOptions",
"-Xlog:class+path=info",
"-XX:SharedArchiveFile=./SharedArchiveFile.jsa",
"-Xshare:on",
"-showversion"
Expand All @@ -73,7 +72,7 @@ public static void runTest(String testname, String[] jarClasses) throws Exceptio
"-XX:+UnlockDiagnosticVMOptions", "-XX:SharedArchiveFile=./SharedArchiveFile.jsa",
"-XX:ExtraSharedClassListFile=" + jarClasslistFile.getPath(),
"-Xshare:dump", "-Xlog:cds");
OutputAnalyzer outputDump = executeAndLog(pb, "exec");
OutputAnalyzer outputDump = executeAndLog(pb, "dump");
for (String jarClass : jarClasses) {
outputDump.shouldNotContain("Cannot find " + jarClass);
}
Expand Down

0 comments on commit f956352

Please sign in to comment.