src/hotspot/share/classfile/classLoaderStats.hpp
changeset 58177 4932dce35882
parent 53244 9807daeb47c4
equal deleted inserted replaced
58176:470af058bd5f 58177:4932dce35882
    96 
    96 
    97 
    97 
    98 class ClassLoaderStatsClosure : public CLDClosure {
    98 class ClassLoaderStatsClosure : public CLDClosure {
    99 protected:
    99 protected:
   100   static bool oop_equals(oop const& s1, oop const& s2) {
   100   static bool oop_equals(oop const& s1, oop const& s2) {
   101     return oopDesc::equals(s1, s2);
   101     return s1 == s2;
   102   }
   102   }
   103 
   103 
   104   static unsigned oop_hash(oop const& s1) {
   104   static unsigned oop_hash(oop const& s1) {
   105     unsigned hash = (unsigned)((uintptr_t)&s1);
   105     unsigned hash = (unsigned)((uintptr_t)&s1);
   106     return hash ^ (hash >> LogMinObjAlignment);
   106     return hash ^ (hash >> LogMinObjAlignment);