Skip to content

Commit 6f690a5

Browse files
committed
8333177: Invalid value used for enum Cell in ciTypeFlow::get_start_state
Reviewed-by: kvn, chagedorn
1 parent b351b5f commit 6f690a5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/hotspot/share/ci/ciTypeFlow.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -404,11 +404,9 @@ const ciTypeFlow::StateVector* ciTypeFlow::get_start_state() {
404404
state->push_translate(str.type());
405405
}
406406
// Set the rest of the locals to bottom.
407-
Cell cell = state->next_cell(state->tos());
408-
state->set_stack_size(0);
409-
int limit = state->limit_cell();
410-
for (; cell < limit; cell = state->next_cell(cell)) {
411-
state->set_type_at(cell, state->bottom_type());
407+
assert(state->stack_size() <= 0, "stack size should not be strictly positive");
408+
while (state->stack_size() < 0) {
409+
state->push(state->bottom_type());
412410
}
413411
// Lock an object, if necessary.
414412
state->set_monitor_count(method()->is_synchronized() ? 1 : 0);

0 commit comments

Comments
 (0)