< prev index next >

src/share/vm/runtime/handles.hpp

Print this page
rev 8961 : [mq]: diff-shenandoah.patch

*** 23,32 **** --- 23,33 ---- */ #ifndef SHARE_VM_RUNTIME_HANDLES_HPP #define SHARE_VM_RUNTIME_HANDLES_HPP + #include "gc/shared/barrierSet.hpp" #include "oops/oop.hpp" #include "oops/oopsHierarchy.hpp" class InstanceKlass; class Klass;
*** 80,91 **** 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; } --- 81,92 ---- 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::bs()->resolve_and_maybe_copy_oop(obj()) == oopDesc::bs()->resolve_and_maybe_copy_oop(o); } ! bool operator == (const Handle& h) const { return oopDesc::bs()->resolve_and_maybe_copy_oop(obj()) == oopDesc::bs()->resolve_and_maybe_copy_oop(h.obj()); } // Null checks bool is_null() const { return _handle == NULL; } bool not_null() const { return _handle != NULL; }
< prev index next >