< prev index next >

src/share/vm/oops/objArrayKlass.cpp

Print this page




 481 const char* ObjArrayKlass::internal_name() const {
 482   return external_name();
 483 }
 484 
 485 
 486 // Verification
 487 
 488 void ObjArrayKlass::verify_on(outputStream* st) {
 489   ArrayKlass::verify_on(st);
 490   guarantee(element_klass()->is_klass(), "should be klass");
 491   guarantee(bottom_klass()->is_klass(), "should be klass");
 492   Klass* bk = bottom_klass();
 493   guarantee(bk->is_instance_klass() || bk->is_typeArray_klass(),  "invalid bottom klass");
 494 }
 495 
 496 void ObjArrayKlass::oop_verify_on(oop obj, outputStream* st) {
 497   ArrayKlass::oop_verify_on(obj, st);
 498   guarantee(obj->is_objArray(), "must be objArray");
 499   objArrayOop oa = objArrayOop(obj);
 500   for(int index = 0; index < oa->length(); index++) {
 501     guarantee(oa->obj_at(index)->is_oop_or_null(), "should be oop");
 502   }
 503 }


 481 const char* ObjArrayKlass::internal_name() const {
 482   return external_name();
 483 }
 484 
 485 
 486 // Verification
 487 
 488 void ObjArrayKlass::verify_on(outputStream* st) {
 489   ArrayKlass::verify_on(st);
 490   guarantee(element_klass()->is_klass(), "should be klass");
 491   guarantee(bottom_klass()->is_klass(), "should be klass");
 492   Klass* bk = bottom_klass();
 493   guarantee(bk->is_instance_klass() || bk->is_typeArray_klass(),  "invalid bottom klass");
 494 }
 495 
 496 void ObjArrayKlass::oop_verify_on(oop obj, outputStream* st) {
 497   ArrayKlass::oop_verify_on(obj, st);
 498   guarantee(obj->is_objArray(), "must be objArray");
 499   objArrayOop oa = objArrayOop(obj);
 500   for(int index = 0; index < oa->length(); index++) {
 501     guarantee(oopDesc::is_oop_or_null(oa->obj_at(index)), "should be oop");
 502   }
 503 }
< prev index next >