hotspot/src/share/vm/oops/klass.cpp
changeset 13952 e3cf184080bc
parent 13728 882756847a04
child 14078 2b2b8833c422
equal deleted inserted replaced
13918:b01a48301e67 13952:e3cf184080bc
   530   return array_klass_impl(true, THREAD);
   530   return array_klass_impl(true, THREAD);
   531 }
   531 }
   532 
   532 
   533 
   533 
   534 Klass* Klass::array_klass_impl(bool or_null, int rank, TRAPS) {
   534 Klass* Klass::array_klass_impl(bool or_null, int rank, TRAPS) {
   535   fatal("array_klass should be dispatched to InstanceKlass, objArrayKlass or typeArrayKlass");
   535   fatal("array_klass should be dispatched to InstanceKlass, ObjArrayKlass or TypeArrayKlass");
   536   return NULL;
   536   return NULL;
   537 }
   537 }
   538 
   538 
   539 
   539 
   540 Klass* Klass::array_klass_impl(bool or_null, TRAPS) {
   540 Klass* Klass::array_klass_impl(bool or_null, TRAPS) {
   541   fatal("array_klass should be dispatched to InstanceKlass, objArrayKlass or typeArrayKlass");
   541   fatal("array_klass should be dispatched to InstanceKlass, ObjArrayKlass or TypeArrayKlass");
   542   return NULL;
   542   return NULL;
   543 }
   543 }
   544 
   544 
   545 
   545 
   546 void Klass::with_array_klasses_do(void f(Klass* k)) {
   546 void Klass::with_array_klasses_do(void f(Klass* k)) {
   672 void Klass::verify_vtable_index(int i) {
   672 void Klass::verify_vtable_index(int i) {
   673   if (oop_is_instance()) {
   673   if (oop_is_instance()) {
   674     assert(i>=0 && i<((InstanceKlass*)this)->vtable_length()/vtableEntry::size(), "index out of bounds");
   674     assert(i>=0 && i<((InstanceKlass*)this)->vtable_length()/vtableEntry::size(), "index out of bounds");
   675   } else {
   675   } else {
   676     assert(oop_is_array(), "Must be");
   676     assert(oop_is_array(), "Must be");
   677     assert(i>=0 && i<((arrayKlass*)this)->vtable_length()/vtableEntry::size(), "index out of bounds");
   677     assert(i>=0 && i<((ArrayKlass*)this)->vtable_length()/vtableEntry::size(), "index out of bounds");
   678   }
   678   }
   679 }
   679 }
   680 
   680 
   681 #endif
   681 #endif