hotspot/src/share/vm/oops/constantPool.cpp
changeset 13952 e3cf184080bc
parent 13736 5b15a8f57979
child 13961 aeaa21c167d1
equal deleted inserted replaced
13918:b01a48301e67 13952:e3cf184080bc
   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()) {