< prev index next >

src/share/vm/oops/oop.inline.hpp

Print this page
rev 7800 : [mq]: cleanupOopInlineHpp

*** 69,83 **** } else { return _metadata._klass; } } - inline int oopDesc::klass_gap_offset_in_bytes() { - assert(UseCompressedClassPointers, "only applicable to compressed klass pointers"); - return oopDesc::klass_offset_in_bytes() + sizeof(narrowKlass); - } - inline Klass** oopDesc::klass_addr() { // Only used internally and with CMS and will not work with // UseCompressedOops assert(!UseCompressedClassPointers, "only supported with uncompressed klass pointers"); return (Klass**) &_metadata._klass; --- 69,78 ----
*** 600,611 **** inline void oopDesc::follow_contents(void) { assert (is_gc_marked(), "should be marked"); klass()->oop_follow_contents(this); } ! // Used by scavengers inline bool oopDesc::is_forwarded() const { // The extra heap check is needed since the obj might be locked, in which case the // mark would point to a stack location and have the sentinel bit cleared return mark()->is_marked(); } --- 595,609 ---- inline void oopDesc::follow_contents(void) { assert (is_gc_marked(), "should be marked"); klass()->oop_follow_contents(this); } ! inline bool oopDesc::is_scavengable() const { ! return Universe::heap()->is_scavengable(this); ! } + // Used by scavengers inline bool oopDesc::is_forwarded() const { // The extra heap check is needed since the obj might be locked, in which case the // mark would point to a stack location and have the sentinel bit cleared return mark()->is_marked(); }
< prev index next >