< prev index next >

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

Print this page

        

*** 266,277 **** // Must be zero, so bite the bullet and take the virtual call. s = klass->oop_size(this); } } - assert(s % MinObjAlignment == 0, "Oop size is not properly aligned: %d", s); assert(s > 0, "Oop size must be greater than zero, not %d", s); return s; } bool oopDesc::is_instance() const { return klass()->is_instance_klass(); } bool oopDesc::is_array() const { return klass()->is_array_klass(); } --- 266,277 ---- // Must be zero, so bite the bullet and take the virtual call. s = klass->oop_size(this); } } assert(s > 0, "Oop size must be greater than zero, not %d", s); + assert((s & MinObjAlignmentMask) == 0, "Oop size is not properly aligned: %d", s); return s; } bool oopDesc::is_instance() const { return klass()->is_instance_klass(); } bool oopDesc::is_array() const { return klass()->is_array_klass(); }
< prev index next >