--- a/hotspot/src/share/vm/runtime/arguments.cpp Tue Feb 02 14:54:05 2016 +0000
+++ b/hotspot/src/share/vm/runtime/arguments.cpp Wed Feb 03 11:40:30 2016 -0500
@@ -402,10 +402,12 @@
};
static AliasedLoggingFlag const aliased_logging_flags[] = {
- { "TraceClassResolution", LogLevel::Info, true, LogTag::_classresolve },
- { "TraceExceptions", LogLevel::Info, true, LogTag::_exceptions },
- { "TraceMonitorInflation", LogLevel::Debug, true, LogTag::_monitorinflation },
- { NULL, LogLevel::Off, false, LogTag::__NO_TAG }
+ { "TraceClassLoading", LogLevel::Info, true, LogTag::_classload },
+ { "TraceClassUnloading", LogLevel::Info, true, LogTag::_classunload },
+ { "TraceClassResolution", LogLevel::Info, true, LogTag::_classresolve },
+ { "TraceExceptions", LogLevel::Info, true, LogTag::_exceptions },
+ { "TraceMonitorInflation", LogLevel::Debug, true, LogTag::_monitorinflation },
+ { NULL, LogLevel::Off, false, LogTag::__NO_TAG }
};
// Return true if "v" is less than "other", where "other" may be "undefined".
@@ -2653,12 +2655,8 @@
// -verbose:[class/gc/jni]
if (match_option(option, "-verbose", &tail)) {
if (!strcmp(tail, ":class") || !strcmp(tail, "")) {
- if (FLAG_SET_CMDLINE(bool, TraceClassLoading, true) != Flag::SUCCESS) {
- return JNI_EINVAL;
- }
- if (FLAG_SET_CMDLINE(bool, TraceClassUnloading, true) != Flag::SUCCESS) {
- return JNI_EINVAL;
- }
+ LogConfiguration::configure_stdout(LogLevel::Info, true, LOG_TAGS(classload));
+ LogConfiguration::configure_stdout(LogLevel::Info, true, LOG_TAGS(classunload));
} else if (!strcmp(tail, ":gc")) {
LogConfiguration::configure_stdout(LogLevel::Info, true, LOG_TAGS(gc));
} else if (!strcmp(tail, ":jni")) {