src/hotspot/share/classfile/systemDictionaryShared.hpp
changeset 59070 22ee476cc664
parent 58542 94fe833a244b
equal deleted inserted replaced
59069:e0d59f0c2b7d 59070:22ee476cc664
   321       _no_class_loading_should_happen = false;
   321       _no_class_loading_should_happen = false;
   322     }
   322     }
   323   };
   323   };
   324 #endif
   324 #endif
   325 
   325 
       
   326   template <typename T>
       
   327   static unsigned int hash_for_shared_dictionary(T* ptr) {
       
   328     assert(ptr > (T*)SharedBaseAddress, "must be");
       
   329     address p = address(ptr) - SharedBaseAddress;
       
   330     return primitive_hash<address>(p);
       
   331   }
   326 };
   332 };
   327 
   333 
   328 #endif // SHARE_CLASSFILE_SYSTEMDICTIONARYSHARED_HPP
   334 #endif // SHARE_CLASSFILE_SYSTEMDICTIONARYSHARED_HPP