8233386: Initialize NULL fields for unused decorations
Reviewed-by: shade, hseigel, dcubed
--- a/src/hotspot/share/logging/logDecorations.cpp Fri Nov 01 07:58:05 2019 +0100
+++ b/src/hotspot/share/logging/logDecorations.cpp Fri Nov 01 10:04:49 2019 -0400
@@ -65,6 +65,8 @@
if (decorators.is_decorator(LogDecorators::full_name##_decorator)) { \
_decoration_offset[LogDecorators::full_name##_decorator] = position; \
position = create_##full_name##_decoration(position) + 1; \
+ } else { \
+ _decoration_offset[LogDecorators::full_name##_decorator] = NULL; \
}
DECORATOR_LIST
#undef DECORATOR