hotspot/src/share/vm/oops/klass.cpp
changeset 46968 9119841280f4
parent 46773 fb17cc9a6847
child 47103 a993ec29ec75
equal deleted inserted replaced
46953:39063b484ec2 46968:9119841280f4
   711       guarantee(ko->is_klass(), "should be klass");
   711       guarantee(ko->is_klass(), "should be klass");
   712     }
   712     }
   713   }
   713   }
   714 
   714 
   715   if (java_mirror() != NULL) {
   715   if (java_mirror() != NULL) {
   716     guarantee(java_mirror()->is_oop(), "should be instance");
   716     guarantee(oopDesc::is_oop(java_mirror()), "should be instance");
   717   }
   717   }
   718 }
   718 }
   719 
   719 
   720 void Klass::oop_verify_on(oop obj, outputStream* st) {
   720 void Klass::oop_verify_on(oop obj, outputStream* st) {
   721   guarantee(obj->is_oop(),  "should be oop");
   721   guarantee(oopDesc::is_oop(obj),  "should be oop");
   722   guarantee(obj->klass()->is_klass(), "klass field is not a klass");
   722   guarantee(obj->klass()->is_klass(), "klass field is not a klass");
   723 }
   723 }
   724 
   724 
   725 klassVtable Klass::vtable() const {
   725 klassVtable Klass::vtable() const {
   726   return klassVtable(const_cast<Klass*>(this), start_of_vtable(), vtable_length() / vtableEntry::size());
   726   return klassVtable(const_cast<Klass*>(this), start_of_vtable(), vtable_length() / vtableEntry::size());