To avoid getting stuck due to JDK-8305420, we need to remove the logging in CDSJDITest.java
https://github.com/openjdk/jdk/blob/aa762102e9328ca76663b56b3be6f6141b044744/test/jdk/com/sun/jdi/cds/CDSJDITest.java#L64
// Args to the Main Class:
// These argument all follow the above <testname> argument, and are
// in fact passed to <testname>.main() as java arguments. <testname> will
// pass them as JVM arguments to the debuggee process it creates.
"-Xbootclasspath/a:" + appJar,
"-XX:+UnlockDiagnosticVMOptions",
"-Xlog:class+path=info", // <<<<<<<<<<<<<< HERE
"-XX:SharedArchiveFile=./SharedArchiveFile.jsa",
"-Xshare:on",
"-showversion"
Three test cases are affected:
test/jdk/com/sun/jdi/cds/CDSBreakpointTest.java
test/jdk/com/sun/jdi/cds/CDSFieldWatchpoints.java
test/jdk/com/sun/jdi/cds/CDSDeleteAllBkptsTest.java
(Please see JDK-8305420 for the root cause).