< prev index next >

src/hotspot/share/oops/oopsHierarchy.hpp

Print this page
rev 51949 : 8211279: Verify missing object equals barriers

*** 99,111 **** oopDesc* obj() const volatile { return _o; } // General access oopDesc* operator->() const { return obj(); } ! bool operator==(const oop o) const { return obj() == o.obj(); } bool operator==(void *p) const { return obj() == p; } ! bool operator!=(const volatile oop o) const { return obj() != o.obj(); } bool operator!=(void *p) const { return obj() != p; } // Assignment oop& operator=(const oop& o) { _o = o.obj(); return *this; } volatile oop& operator=(const oop& o) volatile { _o = o.obj(); return *this; } --- 99,111 ---- oopDesc* obj() const volatile { return _o; } // General access oopDesc* operator->() const { return obj(); } ! bool operator==(const oop o) const; bool operator==(void *p) const { return obj() == p; } ! bool operator!=(const volatile oop o) const; bool operator!=(void *p) const { return obj() != p; } // Assignment oop& operator=(const oop& o) { _o = o.obj(); return *this; } volatile oop& operator=(const oop& o) volatile { _o = o.obj(); return *this; }
< prev index next >