Skip to content

Commit

Permalink
8333177: Invalid value used for enum Cell in ciTypeFlow::get_start_state
Browse files Browse the repository at this point in the history
Reviewed-by: kvn, chagedorn
  • Loading branch information
TobiHartmann committed Jun 6, 2024
1 parent b351b5f commit 6f690a5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/hotspot/share/ci/ciTypeFlow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -404,11 +404,9 @@ const ciTypeFlow::StateVector* ciTypeFlow::get_start_state() {
state->push_translate(str.type());
}
// Set the rest of the locals to bottom.
Cell cell = state->next_cell(state->tos());
state->set_stack_size(0);
int limit = state->limit_cell();
for (; cell < limit; cell = state->next_cell(cell)) {
state->set_type_at(cell, state->bottom_type());
assert(state->stack_size() <= 0, "stack size should not be strictly positive");
while (state->stack_size() < 0) {
state->push(state->bottom_type());
}
// Lock an object, if necessary.
state->set_monitor_count(method()->is_synchronized() ? 1 : 0);
Expand Down

1 comment on commit 6f690a5

@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.