Skip to content

Commit

Permalink
8260255: C1: LoopInvariantCodeMotion constructor can leave some field…
Browse files Browse the repository at this point in the history
…s uninitialized

Reviewed-by: neliasso, thartmann
  • Loading branch information
Rickard Bäckman committed Apr 15, 2021
1 parent b224b56 commit 0793fcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/c1/c1_ValueMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
Expand Down

1 comment on commit 0793fcb

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.