Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.


Browse files Browse the repository at this point in the history
8268676: assert(!ik->is_interface() && !ik->has_subklass()) failed: i…
…nconsistent klass hierarchy

Reviewed-by: kvn, roland, neliasso
  • Loading branch information
Vladimir Ivanov committed Jun 17, 2021
1 parent c98d508 commit 8545269
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/hotspot/share/opto/arraycopynode.cpp
Expand Up @@ -196,8 +196,14 @@ Node* ArrayCopyNode::try_clone_instance(PhaseGVN *phase, bool can_reshape, int c

if (!inst_src->klass_is_exact()) {
ciInstanceKlass* ik = inst_src->klass()->as_instance_klass();
assert(!ik->is_interface() && !ik->has_subklass(), "inconsistent klass hierarchy");
assert(!ik->is_interface(), "inconsistent klass hierarchy");
if (ik->has_subklass()) {
// Concurrent class loading.
// Fail fast and return NodeSentinel to indicate that the transform failed.
return NodeSentinel;
} else {

ciInstanceKlass* ik = inst_src->klass()->as_instance_klass();
Expand Down

1 comment on commit 8545269

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.