6672848: (Escape Analysis) improve lock elimination with EA

Remove lock/unlock MemBar nodes and specify locks in debug info for deoptimization.

Reviewed-by: never
This commit is contained in:
Vladimir Kozlov 2008-03-14 16:40:42 -07:00
parent fc0117cb9a
commit 20046c1a18
6 changed files with 123 additions and 92 deletions

View file

@ -36,7 +36,8 @@ const RegMask &BoxLockNode::out_RegMask() const {
uint BoxLockNode::size_of() const { return sizeof(*this); }
BoxLockNode::BoxLockNode( int slot ) : Node( Compile::current()->root() ), _slot(slot) {
BoxLockNode::BoxLockNode( int slot ) : Node( Compile::current()->root() ),
_slot(slot), _is_eliminated(false) {
init_class_id(Class_BoxLock);
init_flags(Flag_rematerialize);
OptoReg::Name reg = OptoReg::stack2reg(_slot);