diff -r 49836127542b -r 03fce7b04b42 src/hotspot/os/bsd/os_perf_bsd.cpp --- a/src/hotspot/os/bsd/os_perf_bsd.cpp Mon Sep 23 17:02:08 2019 +0200 +++ b/src/hotspot/os/bsd/os_perf_bsd.cpp Tue Sep 24 03:28:42 2019 -0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -234,7 +234,7 @@ bool CPUPerformanceInterface::initialize() { _impl = new CPUPerformanceInterface::CPUPerformance(); - return _impl != NULL && _impl->initialize(); + return _impl->initialize(); } CPUPerformanceInterface::~CPUPerformanceInterface() { @@ -355,7 +355,7 @@ bool SystemProcessInterface::initialize() { _impl = new SystemProcessInterface::SystemProcesses(); - return _impl != NULL && _impl->initialize(); + return _impl->initialize(); } SystemProcessInterface::~SystemProcessInterface() { @@ -370,16 +370,11 @@ bool CPUInformationInterface::initialize() { _cpu_info = new CPUInformation(); - - if (NULL == _cpu_info) { - return false; - } _cpu_info->set_number_of_hardware_threads(VM_Version_Ext::number_of_threads()); _cpu_info->set_number_of_cores(VM_Version_Ext::number_of_cores()); _cpu_info->set_number_of_sockets(VM_Version_Ext::number_of_sockets()); _cpu_info->set_cpu_name(VM_Version_Ext::cpu_name()); _cpu_info->set_cpu_description(VM_Version_Ext::cpu_description()); - return true; } @@ -483,7 +478,7 @@ bool NetworkPerformanceInterface::initialize() { _impl = new NetworkPerformanceInterface::NetworkPerformance(); - return _impl != NULL && _impl->initialize(); + return _impl->initialize(); } int NetworkPerformanceInterface::network_utilization(NetworkInterface** network_interfaces) const {