JDK-8305421 : Work around JDK-8305420 in CDSJDITest.java
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 11,17,20,21
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-04-02
  • Updated: 2023-09-04
  • Resolved: 2023-04-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 17 JDK 21
11.0.20-oracleFixed 17.0.8-oracleFixed 21 b17Fixed
Description
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).
Comments
Fix request [11u,17u] I request fix on behalf of Andrew Lu. He backports this for parity with 11.0.20-oracle,17.0.8-oracle. No risk, only a test change. The change had to be resolved in 11, 17 is clean. SAP nightly testing passed including the affected tests on win.
10-07-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/1552 Date: 2023-07-06 07:09:12 +0000
06-07-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk11u-dev/pull/2029 Date: 2023-07-05 09:52:43 +0000
05-07-2023

Changeset: 9ce5fdc9 Author: Ioi Lam <iklam@openjdk.org> Date: 2023-04-03 22:28:58 +0000 URL: https://git.openjdk.org/jdk/commit/9ce5fdc96262ac80c5a2ac2d51a149408d3d727a
03-04-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/13283 Date: 2023-04-02 22:11:40 +0000
02-04-2023