Mercurial > hg > graal-compiler
diff src/share/vm/opto/library_call.cpp @ 3961:a92cdbac8b9e
7081933: Use zeroing elimination optimization for large array
Summary: Don't zero new typeArray during runtime call if the allocation is followed by arraycopy into it.
Reviewed-by: twisti
author | kvn |
---|---|
date | Mon, 26 Sep 2011 10:24:05 -0700 |
parents | b2cb497dec28 |
children | 52b5d32fbfaf 069ab3f976d3 |
line wrap: on
line diff
--- a/src/share/vm/opto/library_call.cpp Sun Sep 25 16:03:29 2011 -0700 +++ b/src/share/vm/opto/library_call.cpp Mon Sep 26 10:24:05 2011 -0700 @@ -4658,6 +4658,7 @@ // "You break it, you buy it." InitializeNode* init = alloc->initialization(); assert(init->is_complete(), "we just did this"); + init->set_complete_with_arraycopy(); assert(dest->is_CheckCastPP(), "sanity"); assert(dest->in(0)->in(0) == init, "dest pinned"); adr_type = TypeRawPtr::BOTTOM; // all initializations are into raw memory