changeset 56789:562df5d69eed

8233386: Initialize NULL fields for unused decorations Reviewed-by: shade, hseigel, dcubed
author coleenp
date Fri, 01 Nov 2019 10:04:49 -0400
parents 717ebfbac29d
children ab4db38ed085
files src/hotspot/share/logging/logDecorations.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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