--- old/src/hotspot/share/gc/z/zArray.hpp 2019-12-01 18:04:56.950300204 -0500 +++ new/src/hotspot/share/gc/z/zArray.hpp 2019-12-01 18:04:56.694286486 -0500 @@ -25,6 +25,7 @@ #define SHARE_GC_Z_ZARRAY_HPP #include "memory/allocation.hpp" +#include "utilities/macros.hpp" template class ZArray { @@ -35,9 +36,7 @@ size_t _size; size_t _capacity; - // Copy and assignment are not allowed - ZArray(const ZArray& array); - ZArray& operator=(const ZArray& array); + NONCOPYABLE(ZArray); void expand(size_t new_capacity);