< prev index next >

src/hotspot/share/classfile/classLoaderData.cpp

roman_version
 
  public:
   VerifyContainsOopClosure(oop target) : _target(target), _found(false) {}
 
   void do_oop(oop* p) {
-    if (p != NULL && *p == _target) {
+    if (p != NULL && oopDesc::equals(RawAccess<>::oop_load(p), _target)) {
       _found = true;
     }
   }
 
   void do_oop(narrowOop* p) {

@@ -378,11 +378,11 to = to_cld->class_loader(); oop from = from_cld->class_loader(); // Just return if this dependency is to a class with the same or a parent // class_loader. - if (from == to || java_lang_ClassLoader::isAncestor(from, to)) { + if (oopDesc::equals(from, to) || java_lang_ClassLoader::isAncestor(from, to)) { return; // this class loader is in the parent list, no need to add it. } } // It's a dependency we won't find through GC, add it.
< prev index next >