JDK-8312916 : Remove remaining usages of -Xdebug from test/hotspot/jtreg
  • Type: Task
  • Component: hotspot
  • Sub-Component: svc
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-07-25
  • Updated: 2024-04-05
  • Resolved: 2023-07-26
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 JDK 22
11.0.24-oracleFixed 17.0.12-oracleFixed 21.0.3Fixed 22 b08Fixed
Related Reports
Relates :  
Description
In https://bugs.openjdk.org/browse/JDK-8227229 we removed the usages of the -Xdebug option. However, I missed a few usages in the test/hotspot/jtreg tests:

test/hotspot/jtreg/serviceability/attach/ShMemLongName.java
test/hotspot/jtreg/vmTestbase/nsk/jdi/AttachingConnector/attach/attach004/TestDriver.java
test/hotspot/jtreg/vmTestbase/nsk/share/jpda/DebugeeBinder.java

After the integration of https://bugs.openjdk.org/browse/JDK-8227229 the usage of -Xdebug in these tests logs a deprecation warning. Given that this option has been a no-op, we should remove it from these tests.
Comments
Fix request [17u] I backport this for parity with 17.0.12-oracle. No risk, only a test change. Clean backport. attach004 test passes. SAP nightly testing passed.
03-04-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/2362 Date: 2024-04-02 14:45:43 +0000
02-04-2024

Fix request [21u] I backport this to keep the 21u test suite up-to-date. This will simplify future test backports. No risk, only a test change. Clean backport. SAP nightly testing passed.
19-12-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk21u-dev/pull/60 Date: 2023-12-18 13:59:52 +0000
18-12-2023

Changeset: e9daf4a0 Author: Jaikiran Pai <jpai@openjdk.org> Date: 2023-07-26 07:34:52 +0000 URL: https://git.openjdk.org/jdk/commit/e9daf4a0185b90762d2bdd38d86fe93b4822ea08
26-07-2023

Moving to hotspot/svc for triage. This also could be in tools/launcher since the original fix (JDK-8227229) is there...
25-07-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/15016 Date: 2023-07-25 11:44:06 +0000
25-07-2023