--- a/hotspot/src/share/vm/logging/logDecorations.cpp Tue May 10 03:37:36 2016 +0000
+++ b/hotspot/src/share/vm/logging/logDecorations.cpp Mon May 09 15:46:12 2016 +0200
@@ -32,7 +32,7 @@
const char* LogDecorations::_host_name = "";
LogDecorations::LogDecorations(LogLevelType level, const LogTagSet &tagset, const LogDecorators &decorators)
- : _level(level), _tagset(tagset), _millis(-1) {
+ : _level(level), _tagset(tagset), _millis(-1) {
create_decorations(decorators);
}
@@ -110,8 +110,9 @@
}
char* LogDecorations::create_level_decoration(char* pos) {
- int written = jio_snprintf(pos, DecorationsBufferSize - (pos - _decorations_buffer), "%s", LogLevel::name(_level));
- ASSERT_AND_RETURN(written, pos)
+ // Avoid generating the level decoration because it may change.
+ // The decoration() method has a special case for level decorations.
+ return pos;
}
char* LogDecorations::create_tags_decoration(char* pos) {