< prev index next >

src/hotspot/share/classfile/classLoaderStats.hpp

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2014, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 26,35 **** --- 26,36 ---- #define SHARE_VM_CLASSFILE_CLASSLOADERSTATS_HPP #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" #include "utilities/resourceHash.hpp"
*** 95,105 **** class ClassLoaderStatsClosure : public CLDClosure { protected: static bool oop_equals(oop const& s1, oop const& s2) { ! return s1 == s2; } static unsigned oop_hash(oop const& s1) { unsigned hash = (unsigned)((uintptr_t)&s1); return hash ^ (hash >> LogMinObjAlignment); --- 96,106 ---- class ClassLoaderStatsClosure : public CLDClosure { protected: static bool oop_equals(oop const& s1, oop const& s2) { ! return oopDesc::equals(s1, s2); } static unsigned oop_hash(oop const& s1) { unsigned hash = (unsigned)((uintptr_t)&s1); return hash ^ (hash >> LogMinObjAlignment);
< prev index next >