8205940: LoadNode::find_previous_arraycopy fails with "broken allocation" assert jdk-11+20
authorthartmann
Fri, 29 Jun 2018 11:10:47 +0200
changeset 50913 9816d7cc655e
parent 50912 0d6ab24b6ad9
child 50914 07498f5b6a96
8205940: LoadNode::find_previous_arraycopy fails with "broken allocation" assert Summary: Removed assert which is too strong. Reviewed-by: roland
src/hotspot/share/opto/memnode.cpp
--- a/src/hotspot/share/opto/memnode.cpp	Fri Jun 29 11:08:38 2018 +0200
+++ b/src/hotspot/share/opto/memnode.cpp	Fri Jun 29 11:10:47 2018 +0200
@@ -518,8 +518,7 @@
       if (ac->is_clonebasic()) {
         intptr_t offset;
         AllocateNode* alloc = AllocateNode::Ideal_allocation(ac->in(ArrayCopyNode::Dest), phase, offset);
-        assert(alloc != NULL && (!ReduceBulkZeroing || alloc->initialization()->is_complete_with_arraycopy()), "broken allocation");
-        if (alloc == ld_alloc) {
+        if (alloc != NULL && alloc == ld_alloc) {
           return ac;
         }
       }