# HG changeset patch # User kvn # Date 1348088311 25200 # Node ID effbc094884c589abd91e4ea35bf07f6638b3458 # Parent 79c6fae0f949425ff4fc478142c0b7158de5cb0a 7198606: Improve VM optimization Summary: Remove incorrect code in OptimizeFill optimization. Reviewed-by: roland, twisti diff -r 79c6fae0f949 -r effbc094884c hotspot/src/share/vm/opto/loopTransform.cpp --- a/hotspot/src/share/vm/opto/loopTransform.cpp Fri Sep 07 18:18:55 2012 -0700 +++ b/hotspot/src/share/vm/opto/loopTransform.cpp Wed Sep 19 13:58:31 2012 -0700 @@ -2716,6 +2716,8 @@ result_mem = new (C, 1) ProjNode(call,TypeFunc::Memory); _igvn.register_new_node_with_optimizer(result_mem); +/* Disable following optimization until proper fix (add missing checks). + // If this fill is tightly coupled to an allocation and overwrites // the whole body, allow it to take over the zeroing. AllocateNode* alloc = AllocateNode::Ideal_allocation(base, this); @@ -2739,6 +2741,7 @@ #endif } } +*/ // Redirect the old control and memory edges that are outside the loop. Node* exit = head->loopexit()->proj_out(0);