Skip to content

Commit

Permalink
8312916: Remove remaining usages of -Xdebug from test/hotspot/jtreg
Browse files Browse the repository at this point in the history
Backport-of: e9daf4a0185b90762d2bdd38d86fe93b4822ea08
  • Loading branch information
GoeLin committed Apr 3, 2024
1 parent e877941 commit 9f6b099
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions test/hotspot/jtreg/serviceability/attach/ShMemLongName.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 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 @@ -95,7 +95,6 @@ private static void log(String s) {
private static ProcessBuilder getTarget(String shmemName) throws IOException {
log("starting target with shmem name: '" + shmemName + "'...");
return ProcessTools.createJavaProcessBuilder(
"-Xdebug",
"-Xrunjdwp:transport=" + transport + ",server=y,suspend=n,address=" + shmemName,
"ShMemLongName$Target");
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 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 @@ -92,7 +92,6 @@ private static Process startDebuggee(String[] jdiArgs, String transport, String
Collections.addAll(cmd, Utils.prependTestJavaOpts(
"-cp",
Utils.TEST_CLASS_PATH,
"-Xdebug",
"-agentlib:jdwp=transport=" + transport + ",server=y,suspend=" + suspend,
"-Dmy.little.cookie=" + ProcessHandle.current().pid(),
debuggeeClass.getName()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,6 @@ public String[] makeCommandLineArgs(String classToExecute, String transportAddre
args.add(classPath);
*/

args.add("-Xdebug");

String server;
if (argumentHandler.isAttachingConnector()) {
server = "y";
Expand Down

1 comment on commit 9f6b099

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.