@@ -226,11 +226,11 @@ Klass* TypeArrayKlass::array_klass_or_null() { return array_klass_or_null(dimension() + 1); } int TypeArrayKlass::oop_size(oop obj) const { - assert(obj->is_typeArray(),"must be a type array"); + assert(UseCompactObjectHeaders || obj->is_typeArray(),"must be a type array"); typeArrayOop t = typeArrayOop(obj); return t->object_size(this); } void TypeArrayKlass::initialize(TRAPS) {