8312150: Remove -Xnoagent option

Reviewed-by: dholmes, alanb
This commit is contained in:
Jaikiran Pai 2023-12-14 10:36:23 +00:00
parent d632d743e0
commit d2ba3b1ef7
2 changed files with 1 additions and 5 deletions
src/hotspot/share/runtime
test/hotspot/jtreg/runtime/CommandLine

@ -2591,9 +2591,6 @@ jint Arguments::parse_each_vm_init_arg(const JavaVMInitArgs* args, bool* patch_m
// -Xdebug
} else if (match_option(option, "-Xdebug")) {
warning("Option -Xdebug was deprecated in JDK 22 and will likely be removed in a future release.");
// -Xnoagent
} else if (match_option(option, "-Xnoagent")) {
warning("Option -Xnoagent was deprecated in JDK 22 and will likely be removed in a future release.");
} else if (match_option(option, "-Xloggc:", &tail)) {
// Deprecated flag to redirect GC output to a file. -Xloggc:<filename>
log_warning(gc)("-Xloggc is deprecated. Will use -Xlog:gc:%s instead.", tail);

@ -50,8 +50,7 @@ public class TestNullTerminatedFlags {
"-Xshare:on",
"-Xshare:auto",
"-Xshare:off",
"-Xdebug",
"-Xnoagent"
"-Xdebug"
};
public static void main(String args[]) throws Exception{