8233386: Initialize NULL fields for unused decorations
authorcoleenp
Fri, 01 Nov 2019 10:04:49 -0400
changeset 58884 562df5d69eed
parent 58879 717ebfbac29d
child 58891 ab4db38ed085
8233386: Initialize NULL fields for unused decorations Reviewed-by: shade, hseigel, dcubed
src/hotspot/share/logging/logDecorations.cpp
--- 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