hotspot/src/share/vm/oops/klass.cpp
changeset 46408 70aab0c2ea8b
parent 46388 d7a164ad6b7f
child 46413 b0f67ec8f6be
equal deleted inserted replaced
46407:32baebe49efe 46408:70aab0c2ea8b
   694 void Klass::oop_verify_on(oop obj, outputStream* st) {
   694 void Klass::oop_verify_on(oop obj, outputStream* st) {
   695   guarantee(obj->is_oop(),  "should be oop");
   695   guarantee(obj->is_oop(),  "should be oop");
   696   guarantee(obj->klass()->is_klass(), "klass field is not a klass");
   696   guarantee(obj->klass()->is_klass(), "klass field is not a klass");
   697 }
   697 }
   698 
   698 
   699 klassVtable* Klass::vtable() const {
   699 klassVtable Klass::vtable() const {
   700   return new klassVtable(const_cast<Klass*>(this), start_of_vtable(), vtable_length() / vtableEntry::size());
   700   return klassVtable(const_cast<Klass*>(this), start_of_vtable(), vtable_length() / vtableEntry::size());
   701 }
   701 }
   702 
   702 
   703 vtableEntry* Klass::start_of_vtable() const {
   703 vtableEntry* Klass::start_of_vtable() const {
   704   return (vtableEntry*) ((address)this + in_bytes(vtable_start_offset()));
   704   return (vtableEntry*) ((address)this + in_bytes(vtable_start_offset()));
   705 }
   705 }