mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8147464: Use LogConfiguration::configure_stdout() instead of parse_log_arguments
Reviewed-by: mlarsson, sjohanss
This commit is contained in:
parent
75f5093aa1
commit
a52e26777d
3 changed files with 5 additions and 9 deletions
|
@ -2659,11 +2659,7 @@ jint Arguments::parse_each_vm_init_arg(const JavaVMInitArgs* args,
|
|||
return JNI_EINVAL;
|
||||
}
|
||||
} else if (!strcmp(tail, ":gc")) {
|
||||
// LogConfiguration_lock is not set up yet, but this code is executed by a single thread
|
||||
bool ret = LogConfiguration::parse_log_arguments("stdout", "gc", NULL, NULL, NULL);
|
||||
if (!ret) {
|
||||
return JNI_EINVAL;
|
||||
}
|
||||
LogConfiguration::configure_stdout(LogLevel::Info, true, LOG_TAGS(gc));
|
||||
} else if (!strcmp(tail, ":jni")) {
|
||||
if (FLAG_SET_CMDLINE(bool, PrintJNIResolving, true) != Flag::SUCCESS) {
|
||||
return JNI_EINVAL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue