Skip to content

Commit db7684e

Browse files
jaikiranpull[bot]
authored andcommitted
8312150: Remove -Xnoagent option
Reviewed-by: dholmes, alanb
1 parent 5010323 commit db7684e

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/hotspot/share/runtime/arguments.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2591,9 +2591,6 @@ jint Arguments::parse_each_vm_init_arg(const JavaVMInitArgs* args, bool* patch_m
25912591
// -Xdebug
25922592
} else if (match_option(option, "-Xdebug")) {
25932593
warning("Option -Xdebug was deprecated in JDK 22 and will likely be removed in a future release.");
2594-
// -Xnoagent
2595-
} else if (match_option(option, "-Xnoagent")) {
2596-
warning("Option -Xnoagent was deprecated in JDK 22 and will likely be removed in a future release.");
25972594
} else if (match_option(option, "-Xloggc:", &tail)) {
25982595
// Deprecated flag to redirect GC output to a file. -Xloggc:<filename>
25992596
log_warning(gc)("-Xloggc is deprecated. Will use -Xlog:gc:%s instead.", tail);

test/hotspot/jtreg/runtime/CommandLine/TestNullTerminatedFlags.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ public class TestNullTerminatedFlags {
5050
"-Xshare:on",
5151
"-Xshare:auto",
5252
"-Xshare:off",
53-
"-Xdebug",
54-
"-Xnoagent"
53+
"-Xdebug"
5554
};
5655

5756
public static void main(String args[]) throws Exception{

0 commit comments

Comments
 (0)