diff -r 470af058bd5f -r 4932dce35882 src/hotspot/share/classfile/classLoaderData.cpp --- a/src/hotspot/share/classfile/classLoaderData.cpp Tue Sep 17 09:51:02 2019 +0200 +++ b/src/hotspot/share/classfile/classLoaderData.cpp Tue Sep 17 09:51:02 2019 +0200 @@ -232,7 +232,7 @@ VerifyContainsOopClosure(oop target) : _target(target), _found(false) {} void do_oop(oop* p) { - if (p != NULL && oopDesc::equals(NativeAccess::oop_load(p), _target)) { + if (p != NULL && NativeAccess::oop_load(p) == _target) { _found = true; } } @@ -433,7 +433,7 @@ // Just return if this dependency is to a class with the same or a parent // class_loader. - if (oopDesc::equals(from, to) || java_lang_ClassLoader::isAncestor(from, to)) { + if (from == to || java_lang_ClassLoader::isAncestor(from, to)) { return; // this class loader is in the parent list, no need to add it. } }