--- old/src/hotspot/os/bsd/os_perf_bsd.cpp 2019-12-01 18:04:36.645212243 -0500 +++ new/src/hotspot/os/bsd/os_perf_bsd.cpp 2019-12-01 18:04:36.393198740 -0500 @@ -26,6 +26,7 @@ #include "memory/resourceArea.hpp" #include "runtime/os.hpp" #include "runtime/os_perf.hpp" +#include "utilities/macros.hpp" #include CPU_HEADER(vm_version_ext) #ifdef __APPLE__ @@ -72,8 +73,8 @@ int cpu_load_total_process(double* cpu_load); int cpu_loads_process(double* pjvmUserLoad, double* pjvmKernelLoad, double* psystemTotalLoad); - CPUPerformance(const CPUPerformance& rhs); // no impl - CPUPerformance& operator=(const CPUPerformance& rhs); // no impl + NONCOPYABLE(CPUPerformance); + public: CPUPerformance(); bool initialize(); @@ -264,8 +265,7 @@ private: SystemProcesses(); bool initialize(); - SystemProcesses(const SystemProcesses& rhs); // no impl - SystemProcesses& operator=(const SystemProcesses& rhs); // no impl + NONCOPYABLE(SystemProcesses); ~SystemProcesses(); //information about system processes @@ -407,8 +407,7 @@ friend class NetworkPerformanceInterface; private: NetworkPerformance(); - NetworkPerformance(const NetworkPerformance& rhs); // no impl - NetworkPerformance& operator=(const NetworkPerformance& rhs); // no impl + NONCOPYABLE(NetworkPerformance); bool initialize(); ~NetworkPerformance(); int network_utilization(NetworkInterface** network_interfaces) const;