--- old/src/hotspot/os/bsd/semaphore_bsd.hpp 2019-12-01 18:04:37.645265827 -0500 +++ new/src/hotspot/os/bsd/semaphore_bsd.hpp 2019-12-01 18:04:37.397252538 -0500 @@ -25,6 +25,8 @@ #ifndef OS_BSD_SEMAPHORE_BSD_HPP #define OS_BSD_SEMAPHORE_BSD_HPP +#include "utilities/macros.hpp" + #ifndef __APPLE__ // Use POSIX semaphores. # include "semaphore_posix.hpp" @@ -37,9 +39,7 @@ class OSXSemaphore : public CHeapObj{ semaphore_t _semaphore; - // Prevent copying and assignment. - OSXSemaphore(const OSXSemaphore&); - OSXSemaphore& operator=(const OSXSemaphore&); + NONCOPYABLE(OSXSemaphore); public: OSXSemaphore(uint value = 0);