hotspot/src/share/vm/oops/oop.inline.hpp
changeset 39695 946f1321c075
parent 37480 291ee208fb72
child 40655 9f644073d3a0
equal deleted inserted replaced
39694:e8e42da000c5 39695:946f1321c075
   256       // Must be zero, so bite the bullet and take the virtual call.
   256       // Must be zero, so bite the bullet and take the virtual call.
   257       s = klass->oop_size(this);
   257       s = klass->oop_size(this);
   258     }
   258     }
   259   }
   259   }
   260 
   260 
   261   assert(s % MinObjAlignment == 0, "alignment check");
   261   assert(s % MinObjAlignment == 0, "Oop size is not properly aligned: %d", s);
   262   assert(s > 0, "Bad size calculated");
   262   assert(s > 0, "Oop size must be greater than zero, not %d", s);
   263   return s;
   263   return s;
   264 }
   264 }
   265 
   265 
   266 bool oopDesc::is_instance()  const { return klass()->is_instance_klass();  }
   266 bool oopDesc::is_instance()  const { return klass()->is_instance_klass();  }
   267 bool oopDesc::is_array()     const { return klass()->is_array_klass();     }
   267 bool oopDesc::is_array()     const { return klass()->is_array_klass();     }