8227229: Deprecate the launcher -Xdebug/-debug flags that have not done anything since Java 6

Reviewed-by: alanb, cjplummer, dholmes
This commit is contained in:
Jaikiran Pai 2023-07-21 12:58:20 +00:00
parent 9e4fc568a6
commit 842d6329cf
25 changed files with 32 additions and 41 deletions

View file

@ -86,7 +86,6 @@ char* Arguments::_java_command = nullptr;
SystemProperty* Arguments::_system_properties = nullptr;
size_t Arguments::_conservative_max_heap_alignment = 0;
Arguments::Mode Arguments::_mode = _mixed;
bool Arguments::_xdebug_mode = false;
const char* Arguments::_java_vendor_url_bug = nullptr;
const char* Arguments::_sun_java_launcher = DEFAULT_JAVA_LAUNCHER;
bool Arguments::_sun_java_launcher_is_altjvm = false;
@ -2655,8 +2654,7 @@ jint Arguments::parse_each_vm_init_arg(const JavaVMInitArgs* args, bool* patch_m
}
// -Xdebug
} else if (match_option(option, "-Xdebug")) {
// note this flag has been used, then ignore
set_xdebug_mode(true);
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.");