equal
deleted
inserted
replaced
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); |