--- old/src/hotspot/share/memory/metaspaceClosure.hpp 2019-12-01 18:04:59.762450882 -0500 +++ new/src/hotspot/share/memory/metaspaceClosure.hpp 2019-12-01 18:04:59.514437593 -0500 @@ -30,6 +30,7 @@ #include "oops/array.hpp" #include "utilities/growableArray.hpp" #include "utilities/hashtable.inline.hpp" +#include "utilities/macros.hpp" // The metadata hierarchy is separate from the oop hierarchy class MetaspaceObj; // no C++ vtable @@ -108,9 +109,8 @@ class Ref : public CHeapObj { Writability _writability; Ref* _next; - // Noncopyable. - Ref(const Ref&); - Ref& operator=(const Ref&); + NONCOPYABLE(Ref); + protected: virtual void** mpp() const = 0; Ref(Writability w) : _writability(w), _next(NULL) {}