comparison src/share/vm/classfile/verifier.cpp @ 13385:cdf20166ec45

8025632: Remove all references to MagicLambdaImpl from Hotspot Summary: MagicLambdaImpl was removed from jdk side, this should be done in vm side too Reviewed-by: coleenp, hseigel, rdurbin
author minqi
date Wed, 13 Nov 2013 16:24:33 -0800
parents 7114c4597ae3
children 22eaa15b7960
comparison
equal deleted inserted replaced
13055:fce21ac5968d 13385:cdf20166ec45
186 } 186 }
187 187
188 bool Verifier::is_eligible_for_verification(instanceKlassHandle klass, bool should_verify_class) { 188 bool Verifier::is_eligible_for_verification(instanceKlassHandle klass, bool should_verify_class) {
189 Symbol* name = klass->name(); 189 Symbol* name = klass->name();
190 Klass* refl_magic_klass = SystemDictionary::reflect_MagicAccessorImpl_klass(); 190 Klass* refl_magic_klass = SystemDictionary::reflect_MagicAccessorImpl_klass();
191 Klass* lambda_magic_klass = SystemDictionary::lambda_MagicLambdaImpl_klass();
192 191
193 bool is_reflect = refl_magic_klass != NULL && klass->is_subtype_of(refl_magic_klass); 192 bool is_reflect = refl_magic_klass != NULL && klass->is_subtype_of(refl_magic_klass);
194 bool is_lambda = lambda_magic_klass != NULL && klass->is_subtype_of(lambda_magic_klass);
195 193
196 return (should_verify_for(klass->class_loader(), should_verify_class) && 194 return (should_verify_for(klass->class_loader(), should_verify_class) &&
197 // return if the class is a bootstrapping class 195 // return if the class is a bootstrapping class
198 // or defineClass specified not to verify by default (flags override passed arg) 196 // or defineClass specified not to verify by default (flags override passed arg)
199 // We need to skip the following four for bootstraping 197 // We need to skip the following four for bootstraping
213 // reflection implementation, not just those associated with 211 // reflection implementation, not just those associated with
214 // sun/reflect/SerializationConstructorAccessor. 212 // sun/reflect/SerializationConstructorAccessor.
215 // NOTE: this is called too early in the bootstrapping process to be 213 // NOTE: this is called too early in the bootstrapping process to be
216 // guarded by Universe::is_gte_jdk14x_version()/UseNewReflection. 214 // guarded by Universe::is_gte_jdk14x_version()/UseNewReflection.
217 // Also for lambda generated code, gte jdk8 215 // Also for lambda generated code, gte jdk8
218 (!is_reflect || VerifyReflectionBytecodes) && 216 (!is_reflect || VerifyReflectionBytecodes));
219 (!is_lambda || VerifyLambdaBytecodes)
220 );
221 } 217 }
222 218
223 Symbol* Verifier::inference_verify( 219 Symbol* Verifier::inference_verify(
224 instanceKlassHandle klass, char* message, size_t message_len, TRAPS) { 220 instanceKlassHandle klass, char* message, size_t message_len, TRAPS) {
225 JavaThread* thread = (JavaThread*)THREAD; 221 JavaThread* thread = (JavaThread*)THREAD;