--- old/src/hotspot/share/gc/shared/oopStorage.inline.hpp 2019-12-01 18:04:50.157936263 -0500 +++ new/src/hotspot/share/gc/shared/oopStorage.inline.hpp 2019-12-01 18:04:49.905922759 -0500 @@ -34,6 +34,7 @@ #include "utilities/count_trailing_zeros.hpp" #include "utilities/debug.hpp" #include "utilities/globalDefinitions.hpp" +#include "utilities/macros.hpp" // Array of all active blocks. Refcounted for lock-free reclaim of // old array when a new array is allocated for expansion. @@ -48,9 +49,7 @@ ActiveArray(size_t size); ~ActiveArray(); - // Noncopyable - ActiveArray(const ActiveArray&); - ActiveArray& operator=(const ActiveArray&); + NONCOPYABLE(ActiveArray); static size_t blocks_offset(); Block* const* base_ptr() const; @@ -118,9 +117,7 @@ mutable const Block* _prev; mutable const Block* _next; - // Noncopyable. - AllocationListEntry(const AllocationListEntry&); - AllocationListEntry& operator=(const AllocationListEntry&); + NONCOPYABLE(AllocationListEntry); public: AllocationListEntry(); @@ -153,9 +150,7 @@ template static bool iterate_impl(F f, BlockPtr b); - // Noncopyable. - Block(const Block&); - Block& operator=(const Block&); + NONCOPYABLE(Block); public: const AllocationListEntry& allocation_list_entry() const;