equal
deleted
inserted
replaced
517 |
517 |
518 |
518 |
519 void ConstantPool::verify_constant_pool_resolve(constantPoolHandle this_oop, KlassHandle k, TRAPS) { |
519 void ConstantPool::verify_constant_pool_resolve(constantPoolHandle this_oop, KlassHandle k, TRAPS) { |
520 if (k->oop_is_instance() || k->oop_is_objArray()) { |
520 if (k->oop_is_instance() || k->oop_is_objArray()) { |
521 instanceKlassHandle holder (THREAD, this_oop->pool_holder()); |
521 instanceKlassHandle holder (THREAD, this_oop->pool_holder()); |
522 Klass* elem_oop = k->oop_is_instance() ? k() : objArrayKlass::cast(k())->bottom_klass(); |
522 Klass* elem_oop = k->oop_is_instance() ? k() : ObjArrayKlass::cast(k())->bottom_klass(); |
523 KlassHandle element (THREAD, elem_oop); |
523 KlassHandle element (THREAD, elem_oop); |
524 |
524 |
525 // The element type could be a typeArray - we only need the access check if it is |
525 // The element type could be a typeArray - we only need the access check if it is |
526 // an reference to another class |
526 // an reference to another class |
527 if (element->oop_is_instance()) { |
527 if (element->oop_is_instance()) { |