8270801: Print VM arguments with java -Xlog:arguments

Reviewed-by: dholmes, xliu, stuefe, minqi
This commit is contained in:
Ioi Lam 2021-07-17 04:52:47 +00:00
parent a5c9094fdb
commit f8ec3b68f3

View File

@ -3989,6 +3989,11 @@ jint Arguments::parse(const JavaVMInitArgs* initial_cmd_args) {
apply_debugger_ergo();
if (log_is_enabled(Info, arguments)) {
LogStream st(Log(arguments)::info());
Arguments::print_on(&st);
}
return JNI_OK;
}