8147464: Use LogConfiguration::configure_stdout() instead of parse_log_arguments

Reviewed-by: mlarsson, sjohanss
This commit is contained in:
Bengt Rutisson 2016-01-18 09:14:58 +01:00
parent 75f5093aa1
commit a52e26777d
3 changed files with 5 additions and 9 deletions

View file

@ -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;