--- old/src/hotspot/os/posix/semaphore_posix.hpp 2019-12-01 18:04:41.565475873 -0500 +++ new/src/hotspot/os/posix/semaphore_posix.hpp 2019-12-01 18:04:41.321462799 -0500 @@ -26,15 +26,14 @@ #define OS_POSIX_SEMAPHORE_POSIX_HPP #include "memory/allocation.hpp" +#include "utilities/macros.hpp" #include class PosixSemaphore : public CHeapObj { sem_t _semaphore; - // Prevent copying and assignment. - PosixSemaphore(const PosixSemaphore&); - PosixSemaphore& operator=(const PosixSemaphore&); + NONCOPYABLE(PosixSemaphore); public: PosixSemaphore(uint value = 0);