hotspot/src/share/vm/classfile/systemDictionary.cpp
changeset 47098 e704f55561c3
parent 46994 7663ce98384b
child 47103 a993ec29ec75
equal deleted inserted replaced
47097:e43050e1b17f 47098:e704f55561c3
   908 
   908 
   909   // return if the protection domain in NULL
   909   // return if the protection domain in NULL
   910   if (protection_domain() == NULL) return k;
   910   if (protection_domain() == NULL) return k;
   911 
   911 
   912   // Check the protection domain has the right access
   912   // Check the protection domain has the right access
   913   {
   913   if (dictionary->is_valid_protection_domain(d_index, d_hash, name,
   914     MutexLocker mu(SystemDictionary_lock, THREAD);
   914                                              protection_domain)) {
   915     if (dictionary->is_valid_protection_domain(d_index, d_hash, name,
   915     return k;
   916                                                protection_domain)) {
       
   917       return k;
       
   918     }
       
   919   }
   916   }
   920 
   917 
   921   // Verify protection domain. If it fails an exception is thrown
   918   // Verify protection domain. If it fails an exception is thrown
   922   validate_protection_domain(k, class_loader, protection_domain, CHECK_NULL);
   919   validate_protection_domain(k, class_loader, protection_domain, CHECK_NULL);
   923 
   920