equal
deleted
inserted
replaced
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(); } |