changeset 9448:5e836586bcc2

8260255: C1: LoopInvariantCodeMotion constructor can leave some fields uninitialized Reviewed-by: neliasso, thartmann
author rbackman
date Thu, 15 Apr 2021 07:48:40 +0000
parents 52488f6a3c4a
children fd59802f1961
files src/share/vm/c1/c1_ValueMap.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/c1/c1_ValueMap.cpp	Wed Oct 19 10:06:55 2016 +0300
+++ b/src/share/vm/c1/c1_ValueMap.cpp	Thu Apr 15 07:48:40 2021 +0000
@@ -328,7 +328,7 @@
 };
 
 LoopInvariantCodeMotion::LoopInvariantCodeMotion(ShortLoopOptimizer *slo, GlobalValueNumbering* gvn, BlockBegin* loop_header, BlockList* loop_blocks)
-  : _gvn(gvn), _short_loop_optimizer(slo) {
+  : _gvn(gvn), _short_loop_optimizer(slo), _insertion_point(NULL), _state(NULL), _insert_is_pred(false) {
 
   TRACE_VALUE_NUMBERING(tty->print_cr("using loop invariant code motion loop_header = %d", loop_header->block_id()));
   TRACE_VALUE_NUMBERING(tty->print_cr("** loop invariant code motion for short loop B%d", loop_header->block_id()));