--- old/src/hotspot/share/classfile/classLoaderStats.hpp 2018-09-19 08:31:38.188812748 -0400 +++ new/src/hotspot/share/classfile/classLoaderStats.hpp 2018-09-19 08:31:37.987812036 -0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -28,6 +28,7 @@ #include "classfile/classLoaderData.hpp" #include "oops/klass.hpp" +#include "oops/oop.hpp" #include "oops/oopsHierarchy.hpp" #include "runtime/vm_operations.hpp" #include "services/diagnosticCommand.hpp" @@ -97,7 +98,7 @@ class ClassLoaderStatsClosure : public CLDClosure { protected: static bool oop_equals(oop const& s1, oop const& s2) { - return s1 == s2; + return oopDesc::equals(s1, s2); } static unsigned oop_hash(oop const& s1) {