hotspot/src/share/vm/oops/oop.inline.hpp
changeset 46683 33808f7eadd5
parent 46625 edefffab74e2
child 46710 941f16147746
equal deleted inserted replaced
46682:b646732e1473 46683:33808f7eadd5
   266       // Must be zero, so bite the bullet and take the virtual call.
   266       // Must be zero, so bite the bullet and take the virtual call.
   267       s = klass->oop_size(this);
   267       s = klass->oop_size(this);
   268     }
   268     }
   269   }
   269   }
   270 
   270 
   271   assert(s % MinObjAlignment == 0, "Oop size is not properly aligned: %d", s);
       
   272   assert(s > 0, "Oop size must be greater than zero, not %d", s);
   271   assert(s > 0, "Oop size must be greater than zero, not %d", s);
       
   272   assert(is_object_aligned(s), "Oop size is not properly aligned: %d", s);
   273   return s;
   273   return s;
   274 }
   274 }
   275 
   275 
   276 bool oopDesc::is_instance()  const { return klass()->is_instance_klass();  }
   276 bool oopDesc::is_instance()  const { return klass()->is_instance_klass();  }
   277 bool oopDesc::is_array()     const { return klass()->is_array_klass();     }
   277 bool oopDesc::is_array()     const { return klass()->is_array_klass();     }