# HG changeset patch # User coleenp # Date 1572617089 14400 # Node ID 562df5d69eed23d357ae551b365f82963754fca7 # Parent 717ebfbac29de0ddf82ee6b59c9816ab7849a10b 8233386: Initialize NULL fields for unused decorations Reviewed-by: shade, hseigel, dcubed diff -r 717ebfbac29d -r 562df5d69eed 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