Skip to content
Permalink
Browse files
8260255: C1: LoopInvariantCodeMotion constructor can leave some field…
…s uninitialized

Reviewed-by: neliasso, thartmann
  • Loading branch information
Rickard Bäckman committed Apr 15, 2021
1 parent b224b56 commit 0793fcbbca9b9331ffd41130d54e750d30e35031
Showing with 1 addition and 1 deletion.
  1. +1 −1 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()));

1 comment on commit 0793fcb

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on 0793fcb Apr 15, 2021

Please sign in to comment.