mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 10:04:42 +02:00
8176505: Wrong assertion 'should be an array copy/clone' in arraycopynode.cpp
Reviewed-by: thartmann, roland
This commit is contained in:
parent
56f838f4ee
commit
1cd78903a8
2 changed files with 52 additions and 2 deletions
|
@ -225,7 +225,6 @@ bool ArrayCopyNode::prepare_array_copy(PhaseGVN *phase, bool can_reshape,
|
|||
Node* dest = in(ArrayCopyNode::Dest);
|
||||
const Type* src_type = phase->type(src);
|
||||
const TypeAryPtr* ary_src = src_type->isa_aryptr();
|
||||
assert(ary_src != NULL, "should be an array copy/clone");
|
||||
|
||||
if (is_arraycopy() || is_copyofrange() || is_copyof()) {
|
||||
const Type* dest_type = phase->type(dest);
|
||||
|
@ -286,7 +285,8 @@ bool ArrayCopyNode::prepare_array_copy(PhaseGVN *phase, bool can_reshape,
|
|||
|
||||
copy_type = dest_elem;
|
||||
} else {
|
||||
assert (is_clonebasic(), "should be");
|
||||
assert(ary_src != NULL, "should be a clone");
|
||||
assert(is_clonebasic(), "should be");
|
||||
|
||||
disjoint_bases = true;
|
||||
assert(src->is_AddP(), "should be base + off");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue