Skip to content

Commit 8a171f5

Browse files
committed
backport usages of flag -Xdebug, see 8227229: Deprecate the launcher -Xdebug/-debug flags that have not done anything since Java 6
1 parent 090eeb5 commit 8a171f5

File tree

20 files changed

+28
-29
lines changed

20 files changed

+28
-29
lines changed

make/ide/netbeans/langtools/build.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@
242242
</nbjpdastart>
243243
<property
244244
name="@{jpda.jvmargs.property}"
245-
value="-Xdebug -Xrunjdwp:transport=dt_socket,address=${jpda.address}"
245+
value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"
246246
/>
247247
</sequential>
248248
</macrodef>

src/jdk.jdi/share/classes/com/sun/tools/jdi/SunCommandLineLauncher.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,6 @@ static boolean hasWhitespace(String string) {
225225

226226
String command = exePath + ' ' +
227227
options + ' ' +
228-
"-Xdebug " +
229228
"-Xrunjdwp:" + xrun + ' ' +
230229
mainClassAndArgs;
231230

test/hotspot/jtreg/runtime/6294277/SourceDebugExtension.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2012, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -25,8 +25,8 @@
2525
* @test
2626
* @bug 6294277
2727
* @requires vm.jvmti
28-
* @summary java -Xdebug crashes on SourceDebugExtension attribute larger than 64K
29-
* @run main/othervm -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n SourceDebugExtension
28+
* @summary verify that the JVM doesn't crash when SourceDebugExtension attribute is larger than 64K
29+
* @run main/othervm -Xrunjdwp:transport=dt_socket,server=y,suspend=n SourceDebugExtension
3030
*/
3131
import java.io.*;
3232

test/hotspot/jtreg/vmTestbase/nsk/jdi/AttachingConnector/attach/attach001.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ private int runIt(String argv[], PrintStream out) {
9797
String java = argHandler.getLaunchExecPath()
9898
+ " " + argHandler.getLaunchOptions();
9999
String cmd = java
100-
+ " -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=0"
100+
+ " -Xrunjdwp:transport=dt_socket,server=y,address=0"
101101
+ " " + DEBUGEE_CLASS;
102102

103103
Binder binder = new Binder(argHandler, log);

test/hotspot/jtreg/vmTestbase/nsk/jdi/AttachingConnector/attach/attach002.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ private int runIt(String argv[], PrintStream out) {
102102
String java = argHandler.getLaunchExecPath()
103103
+ " " + argHandler.getLaunchOptions();
104104
String cmd = java +
105-
" -Xdebug -Xrunjdwp:transport=dt_shmem,server=y,address=" +
105+
" -Xrunjdwp:transport=dt_shmem,server=y,address=" +
106106
name + " " + DEBUGEE_CLASS;
107107

108108
Binder binder = new Binder(argHandler, log);

test/hotspot/jtreg/vmTestbase/nsk/jdi/AttachingConnector/attachnosuspend/attachnosuspend001.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ private int runIt(String argv[], PrintStream out) {
9797
String java = argHandler.getLaunchExecPath()
9898
+ " " + argHandler.getLaunchOptions();
9999
String cmd = java
100-
+ " -Xdebug -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=0"
100+
+ " -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=0"
101101
+ " " + DEBUGEE_CLASS;
102102

103103
Binder binder = new Binder(argHandler, log);

test/hotspot/jtreg/vmTestbase/nsk/jdi/LaunchingConnector/launch/launch003.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ private Map<String,? extends com.sun.jdi.connect.Connector.Argument> setupConnec
134134
Connector.Argument a = (Connector.Argument) cava[i];
135135
if (a.name().equals("command"))
136136
a.setValue(java +
137-
" -Xdebug -Xrunjdwp:suspend=y,transport=" +
137+
" -Xrunjdwp:suspend=y,transport=" +
138138
TRANSPORT_NAME +
139139
",address=" + host + ":" + port +
140140
" " + DEBUGEE_CLASS);

test/hotspot/jtreg/vmTestbase/nsk/jdi/LaunchingConnector/launch/launch004.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ private Map<java.lang.String,? extends com.sun.jdi.connect.Connector.Argument> s
133133
Connector.Argument a = (Connector.Argument) cava[i];
134134
if (a.name().equals("command"))
135135
a.setValue(java +
136-
" -Xdebug -Xrunjdwp:suspend=y,transport=" +
136+
" -Xrunjdwp:suspend=y,transport=" +
137137
TRANSPORT_NAME +
138138
",address=" + name +
139139
" " + DEBUGEE_CLASS);

test/hotspot/jtreg/vmTestbase/nsk/jdi/ListeningConnector/accept/accept001.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private int runIt(String argv[], PrintStream out) {
8181
String java = argHandler.getLaunchExecPath()
8282
+ " " + argHandler.getLaunchOptions();
8383
String cmd = java +
84-
" -Xdebug -Xrunjdwp:transport=dt_socket,server=n,address=" +
84+
" -Xrunjdwp:transport=dt_socket,server=n,address=" +
8585
connAddr + " " + DEBUGEE_CLASS;
8686

8787
Binder binder = new Binder(argHandler, log);

test/hotspot/jtreg/vmTestbase/nsk/jdi/ListeningConnector/accept/accept002.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ private int runIt(String argv[], PrintStream out) {
8282
String java = argHandler.getLaunchExecPath()
8383
+ " " + argHandler.getLaunchOptions();
8484
String cmd = java +
85-
" -Xdebug -Xrunjdwp:transport=dt_shmem,server=n,address=" +
85+
" -Xrunjdwp:transport=dt_shmem,server=n,address=" +
8686
connAddr + " " + DEBUGEE_CLASS;
8787

8888
Binder binder = new Binder(argHandler, log);

0 commit comments

Comments
 (0)