hotspot/src/share/vm/oops/instanceKlass.cpp
changeset 27680 8ecc0871c18e
parent 27435 58d1380ceacb
child 27685 26a697375de3
equal deleted inserted replaced
27679:06b3a53d7781 27680:8ecc0871c18e
   530 bool InstanceKlass::verify_code(
   530 bool InstanceKlass::verify_code(
   531     instanceKlassHandle this_k, bool throw_verifyerror, TRAPS) {
   531     instanceKlassHandle this_k, bool throw_verifyerror, TRAPS) {
   532   // 1) Verify the bytecodes
   532   // 1) Verify the bytecodes
   533   Verifier::Mode mode =
   533   Verifier::Mode mode =
   534     throw_verifyerror ? Verifier::ThrowException : Verifier::NoException;
   534     throw_verifyerror ? Verifier::ThrowException : Verifier::NoException;
   535   return Verifier::verify(this_k, mode, this_k->should_verify_class(), CHECK_false);
   535   return Verifier::verify(this_k, mode, this_k->should_verify_class(), THREAD);
   536 }
   536 }
   537 
   537 
   538 
   538 
   539 // Used exclusively by the shared spaces dump mechanism to prevent
   539 // Used exclusively by the shared spaces dump mechanism to prevent
   540 // classes mapped into the shared regions in new VMs from appearing linked.
   540 // classes mapped into the shared regions in new VMs from appearing linked.
  1128   // _this will always be set at this point
  1128   // _this will always be set at this point
  1129   ObjArrayKlass* oak = (ObjArrayKlass*)this_k->array_klasses();
  1129   ObjArrayKlass* oak = (ObjArrayKlass*)this_k->array_klasses();
  1130   if (or_null) {
  1130   if (or_null) {
  1131     return oak->array_klass_or_null(n);
  1131     return oak->array_klass_or_null(n);
  1132   }
  1132   }
  1133   return oak->array_klass(n, CHECK_NULL);
  1133   return oak->array_klass(n, THREAD);
  1134 }
  1134 }
  1135 
  1135 
  1136 Klass* InstanceKlass::array_klass_impl(bool or_null, TRAPS) {
  1136 Klass* InstanceKlass::array_klass_impl(bool or_null, TRAPS) {
  1137   return array_klass_impl(or_null, 1, THREAD);
  1137   return array_klass_impl(or_null, 1, THREAD);
  1138 }
  1138 }