--- old/src/share/vm/opto/matcher.cpp 2012-06-25 16:58:57.479918671 +0200 +++ new/src/share/vm/opto/matcher.cpp 2012-06-25 16:58:57.284699634 +0200 @@ -2133,10 +2133,10 @@ case Op_CompareAndSwapP: case Op_CompareAndSwapN: { // Convert trinary to binary-tree Node *newval = n->in(MemNode::ValueIn ); - Node *oldval = n->in(LoadStoreNode::ExpectedIn); + Node *oldval = n->in(LoadStoreConditionalNode::ExpectedIn); Node *pair = new (C, 3) BinaryNode( oldval, newval ); n->set_req(MemNode::ValueIn,pair); - n->del_req(LoadStoreNode::ExpectedIn); + n->del_req(LoadStoreConditionalNode::ExpectedIn); break; } case Op_CMoveD: // Convert trinary to binary-tree