< prev index next >
src/hotspot/share/runtime/handles.hpp
Print this page
rev 49250 : [mq]: JDK-8199781.patch
*** 75,86 ****
inline Handle(Thread* thread, oop obj);
// General access
oop operator () () const { return obj(); }
oop operator -> () const { return non_null_obj(); }
! bool operator == (oop o) const { return obj() == o; }
! bool operator == (const Handle& h) const { return obj() == h.obj(); }
// Null checks
bool is_null() const { return _handle == NULL; }
bool not_null() const { return _handle != NULL; }
--- 75,86 ----
inline Handle(Thread* thread, oop obj);
// General access
oop operator () () const { return obj(); }
oop operator -> () const { return non_null_obj(); }
! bool operator == (oop o) const { return oopDesc::equals(obj(), o); }
! bool operator == (const Handle& h) const{ return oopDesc::equals(obj(), h.obj()); }
// Null checks
bool is_null() const { return _handle == NULL; }
bool not_null() const { return _handle != NULL; }
< prev index next >