diff a/src/hotspot/share/gc/shared/hSpaceCounters.cpp b/src/hotspot/share/gc/shared/hSpaceCounters.cpp --- a/src/hotspot/share/gc/shared/hSpaceCounters.cpp +++ b/src/hotspot/share/gc/shared/hSpaceCounters.cpp @@ -1,7 +1,7 @@ /* - * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. @@ -65,13 +65,11 @@ initial_capacity, CHECK); } } HSpaceCounters::~HSpaceCounters() { - if (_name_space != NULL) { - FREE_C_HEAP_ARRAY(char, _name_space); - } + FREE_C_HEAP_ARRAY(char, _name_space); } void HSpaceCounters::update_capacity(size_t v) { _capacity->set_value(v); }