hotspot/src/share/vm/opto/arraycopynode.cpp
changeset 29345 e8f6ba59748f
parent 29340 e5ee51840b93
child 29360 dd9daceb5f3d
--- a/hotspot/src/share/vm/opto/arraycopynode.cpp	Tue Feb 24 15:23:05 2015 +0100
+++ b/hotspot/src/share/vm/opto/arraycopynode.cpp	Wed Feb 25 10:44:38 2015 +0100
@@ -121,7 +121,8 @@
       // 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(), "inconsistent");
+      assert((get_length_if_constant(phase) == -1) == !ary_src->size()->is_con() ||
+             phase->is_IterGVN(), "inconsistent");
 
       if (ary_src->size()->is_con()) {
         return ary_src->size()->get_con();