hotspot/src/share/vm/opto/library_call.cpp
changeset 207 694076d0755f
parent 202 dc13bf0e5d5d
child 360 21d113ecbf6a
--- a/hotspot/src/share/vm/opto/library_call.cpp	Fri Feb 29 09:57:18 2008 -0800
+++ b/hotspot/src/share/vm/opto/library_call.cpp	Fri Feb 29 11:22:27 2008 -0800
@@ -4170,6 +4170,7 @@
       && !_gvn.eqv_uncast(src, dest)
       && ((alloc = tightly_coupled_allocation(dest, slow_region))
           != NULL)
+      && _gvn.find_int_con(alloc->in(AllocateNode::ALength), 1) > 0
       && alloc->maybe_set_complete(&_gvn)) {
     // "You break it, you buy it."
     InitializeNode* init = alloc->initialization();