hotspot/src/share/vm/runtime/arguments.cpp
changeset 35520 0efb779f41a5
parent 35495 e27da438fa13
child 35872 7fb1e4de83ff
--- a/hotspot/src/share/vm/runtime/arguments.cpp	Thu Jan 14 15:09:11 2016 +0100
+++ b/hotspot/src/share/vm/runtime/arguments.cpp	Mon Jan 18 09:14:58 2016 +0100
@@ -2659,11 +2659,7 @@
           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;