src/hotspot/share/oops/oopsHierarchy.hpp
changeset 58175 272910ccd7bb
parent 58015 dd84de796f2c
child 58178 bb1aaed00341
equal deleted inserted replaced
58174:d349347d6b5f 58175:272910ccd7bb
    98 
    98 
    99   oopDesc* obj()  const volatile      { return _o; }
    99   oopDesc* obj()  const volatile      { return _o; }
   100 
   100 
   101   // General access
   101   // General access
   102   oopDesc*  operator->() const        { return obj(); }
   102   oopDesc*  operator->() const        { return obj(); }
   103   bool operator==(const oop o) const;
   103   bool operator==(const oop o) const  { return obj() == o.obj(); }
   104   bool operator==(void *p) const      { return obj() == p; }
   104   bool operator==(void *p) const      { return obj() == p; }
   105   bool operator!=(const volatile oop o) const;
   105   bool operator!=(const volatile oop o) const { return obj() != o.obj(); }
   106   bool operator!=(void *p) const      { return obj() != p; }
   106   bool operator!=(void *p) const      { return obj() != p; }
   107 
   107 
   108   // Assignment
   108   // Assignment
   109   oop& operator=(const oop& o)                            { _o = o.obj(); return *this; }
   109   oop& operator=(const oop& o)                            { _o = o.obj(); return *this; }
   110   volatile oop& operator=(const oop& o) volatile          { _o = o.obj(); return *this; }
   110   volatile oop& operator=(const oop& o) volatile          { _o = o.obj(); return *this; }