hotspot/src/share/vm/logging/logLevel.hpp
changeset 34316 4d876653d940
parent 34252 59d76c40998a
--- a/hotspot/src/share/vm/logging/logLevel.hpp	Fri Nov 27 12:07:01 2015 +0100
+++ b/hotspot/src/share/vm/logging/logLevel.hpp	Fri Nov 27 12:37:38 2015 +0100
@@ -58,6 +58,7 @@
 #undef LOG_LEVEL
     Count,
     Invalid,
+    NotMentioned,
     First = Off + 1,
     Last = Error,
     Default = Warning,
@@ -65,6 +66,7 @@
   };
 
   static const char *name(LogLevel::type level) {
+    assert(level >= 0 && level < LogLevel::Count, "Invalid level (enum value %d).", level);
     return _name[level];
   }