comparison src/share/vm/oops/instanceKlass.cpp @ 973:ad6585fd4087

6830542: Performance: JVM_DefineClass already verified. Reviewed-by: kamg, phh
author acorn
date Fri, 04 Sep 2009 12:53:02 -0400
parents 75e30968ebe1
children 26b774d693aa
comparison
equal deleted inserted replaced
967:6918603297f7 973:ad6585fd4087
108 bool instanceKlass::verify_code( 108 bool instanceKlass::verify_code(
109 instanceKlassHandle this_oop, bool throw_verifyerror, TRAPS) { 109 instanceKlassHandle this_oop, bool throw_verifyerror, TRAPS) {
110 // 1) Verify the bytecodes 110 // 1) Verify the bytecodes
111 Verifier::Mode mode = 111 Verifier::Mode mode =
112 throw_verifyerror ? Verifier::ThrowException : Verifier::NoException; 112 throw_verifyerror ? Verifier::ThrowException : Verifier::NoException;
113 return Verifier::verify(this_oop, mode, CHECK_false); 113 return Verifier::verify(this_oop, mode, this_oop->should_verify_class(), CHECK_false);
114 } 114 }
115 115
116 116
117 // Used exclusively by the shared spaces dump mechanism to prevent 117 // Used exclusively by the shared spaces dump mechanism to prevent
118 // classes mapped into the shared regions in new VMs from appearing linked. 118 // classes mapped into the shared regions in new VMs from appearing linked.