< prev index next >

src/hotspot/share/opto/locknode.hpp

Print this page
*** 87,10 ***
--- 87,11 ---
    Node* box_node() const { return in(2); }
    void  set_box_node(Node* box) { set_req(2, box); }
  
    // FastLock and FastUnlockNode do not hash, we need one for each corresponding
    // LockNode/UnLockNode to avoid creating Phi's.
+   virtual uint match_edge(uint idx) const { return idx < 2; /* Don't match box */ }
    virtual uint hash() const ;                  // { return NO_HASH; }
    virtual uint size_of() const;
    virtual bool cmp( const Node &n ) const ;    // Always fail, except on self
    virtual int Opcode() const;
    virtual const Type* Value(PhaseGVN* phase) const { return TypeInt::CC; }

*** 117,10 ***
--- 118,11 ---
    // LockNode/UnLockNode to avoid creating Phi's.
    virtual uint hash() const ;                  // { return NO_HASH; }
    virtual bool cmp( const Node &n ) const ;    // Always fail, except on self
    virtual int Opcode() const;
    virtual const Type* Value(PhaseGVN* phase) const { return TypeInt::CC; }
+   virtual uint match_edge(uint idx) const { return idx < 2; /* Don't match box */ }
    const Type *sub(const Type *t1, const Type *t2) const { return TypeInt::CC;}
  
  };
  
  #endif // SHARE_OPTO_LOCKNODE_HPP
< prev index next >