96 bool Verifier::should_verify_for(oop class_loader, bool should_verify_class) { |
96 bool Verifier::should_verify_for(oop class_loader, bool should_verify_class) { |
97 return (class_loader == NULL || !should_verify_class) ? |
97 return (class_loader == NULL || !should_verify_class) ? |
98 BytecodeVerificationLocal : BytecodeVerificationRemote; |
98 BytecodeVerificationLocal : BytecodeVerificationRemote; |
99 } |
99 } |
100 |
100 |
101 bool Verifier::relax_access_for(oop loader) { |
101 bool Verifier::relax_verify_for(oop loader) { |
102 bool trusted = java_lang_ClassLoader::is_trusted_loader(loader); |
102 bool trusted = java_lang_ClassLoader::is_trusted_loader(loader); |
103 bool need_verify = |
103 bool need_verify = |
104 // verifyAll |
104 // verifyAll |
105 (BytecodeVerificationLocal && BytecodeVerificationRemote) || |
105 (BytecodeVerificationLocal && BytecodeVerificationRemote) || |
106 // verifyRemote |
106 // verifyRemote |