aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Rickard Bäckman <rbackman@openjdk.org> 2021-04-15 07:48:40 +0000
committerGravatar Rickard Bäckman <rbackman@openjdk.org> 2021-04-15 07:48:40 +0000
commit0793fcbbca9b9331ffd41130d54e750d30e35031 (patch)
tree42fdffca6c2789dadb34bb9da543819c87b18a9f
parentb224b566491eb4d41b6ae3723fdf97b632218cfa (diff)
downloadjdk-0793fcbbca9b9331ffd41130d54e750d30e35031.tar.gz
jdk-0793fcbbca9b9331ffd41130d54e750d30e35031.zip
8260255: C1: LoopInvariantCodeMotion constructor can leave some fields uninitialized
Reviewed-by: neliasso, thartmann
-rw-r--r--src/hotspot/share/c1/c1_ValueMap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hotspot/share/c1/c1_ValueMap.cpp b/src/hotspot/share/c1/c1_ValueMap.cpp
index 016ea3c99c0..6a6be2f5e34 100644
--- a/src/hotspot/share/c1/c1_ValueMap.cpp
+++ b/src/hotspot/share/c1/c1_ValueMap.cpp
@@ -328,7 +328,7 @@ class LoopInvariantCodeMotion : public StackObj {
};
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()));