Skip to content

Commit 9d41ba1

Browse files
author
Vladimir Kozlov
committed
8348261: assert(n->is_Mem()) failed: memory node required
Reviewed-by: epeter, chagedorn Backport-of: f6a8db289e5366845f9518fce7a98538017e9570
1 parent 77d8da6 commit 9d41ba1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/hotspot/share/opto/escape.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4706,13 +4706,21 @@ void ConnectionGraph::split_unique_types(GrowableArray<Node *> &alloc_worklist,
47064706
if (n == nullptr) {
47074707
continue;
47084708
}
4709+
} else if (n->Opcode() == Op_StrInflatedCopy) {
4710+
// Check direct uses of StrInflatedCopy.
4711+
// It is memory type Node - no special SCMemProj node.
47094712
} else if (n->Opcode() == Op_StrCompressedCopy ||
47104713
n->Opcode() == Op_EncodeISOArray) {
47114714
// get the memory projection
47124715
n = n->find_out_with(Op_SCMemProj);
47134716
assert(n != nullptr && n->Opcode() == Op_SCMemProj, "memory projection required");
47144717
} else {
4718+
#ifdef ASSERT
4719+
if (!n->is_Mem()) {
4720+
n->dump();
4721+
}
47154722
assert(n->is_Mem(), "memory node required.");
4723+
#endif
47164724
Node *addr = n->in(MemNode::Address);
47174725
const Type *addr_t = igvn->type(addr);
47184726
if (addr_t == Type::TOP) {

0 commit comments

Comments
 (0)