src/hotspot/share/oops/oop.inline.hpp
changeset 47624 b055cb5170f5
parent 47609 a1f68e415b48
child 47634 6a0c42c40cd1
equal deleted inserted replaced
47623:0a5f1b851890 47624:b055cb5170f5
   537 bool oopDesc::is_gc_marked() const {
   537 bool oopDesc::is_gc_marked() const {
   538   return mark()->is_marked();
   538   return mark()->is_marked();
   539 }
   539 }
   540 
   540 
   541 bool oopDesc::is_scavengable() const {
   541 bool oopDesc::is_scavengable() const {
   542   return Universe::heap()->is_scavengable(this);
   542   return Universe::heap()->is_scavengable(oop(const_cast<oopDesc*>(this)));
   543 }
   543 }
   544 
   544 
   545 // Used by scavengers
   545 // Used by scavengers
   546 bool oopDesc::is_forwarded() const {
   546 bool oopDesc::is_forwarded() const {
   547   // The extra heap check is needed since the obj might be locked, in which case the
   547   // The extra heap check is needed since the obj might be locked, in which case the