comparison src/share/vm/opto/output.cpp @ 66:6dbf1a175d6b

6672848: (Escape Analysis) improve lock elimination with EA Summary: Remove lock/unlock MemBar nodes and specify locks in debug info for deoptimization. Reviewed-by: never
author kvn
date Fri, 14 Mar 2008 16:40:42 -0700
parents eac007780a58
children 885ed790ecf0
comparison
equal deleted inserted replaced
65:99269dbf4ba8 66:6dbf1a175d6b
880 } else { 880 } else {
881 scval = new ConstantOopWriteValue(obj_node->bottom_type()->is_instptr()->const_oop()->encoding()); 881 scval = new ConstantOopWriteValue(obj_node->bottom_type()->is_instptr()->const_oop()->encoding());
882 } 882 }
883 883
884 OptoReg::Name box_reg = BoxLockNode::stack_slot(box_node); 884 OptoReg::Name box_reg = BoxLockNode::stack_slot(box_node);
885 monarray->append(new MonitorValue(scval, Location::new_stk_loc(Location::normal,_regalloc->reg2offset(box_reg)))); 885 Location basic_lock = Location::new_stk_loc(Location::normal,_regalloc->reg2offset(box_reg));
886 monarray->append(new MonitorValue(scval, basic_lock, box_node->as_BoxLock()->is_eliminated()));
886 } 887 }
887 888
888 // We dump the object pool first, since deoptimization reads it in first. 889 // We dump the object pool first, since deoptimization reads it in first.
889 debug_info()->dump_object_pool(objs); 890 debug_info()->dump_object_pool(objs);
890 891