Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8257631: C2: Assertion failure in ArrayCopyNode::get_count() during l…
…ate inlining

Reviewed-by: neliasso, kvn, thartmann
  • Loading branch information
Vladimir Ivanov committed Dec 4, 2020
1 parent 417e7e6 commit f33808f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hotspot/share/opto/arraycopynode.cpp
Expand Up @@ -136,8 +136,8 @@ int ArrayCopyNode::get_count(PhaseGVN *phase) const {
// length input to ArrayCopyNode is constant, length of input
// array must be too.

assert((get_length_if_constant(phase) == -1) == !ary_src->size()->is_con() ||
phase->is_IterGVN() || StressReflectiveCode, "inconsistent");
assert((get_length_if_constant(phase) == -1) != ary_src->size()->is_con() ||
phase->is_IterGVN() || phase->C->inlining_incrementally() || StressReflectiveCode, "inconsistent");

if (ary_src->size()->is_con()) {
return ary_src->size()->get_con();
Expand Down

1 comment on commit f33808f

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