src/hotspot/share/gc/shared/hSpaceCounters.cpp
changeset 58084 cddef3bde924
parent 48196 5ee29f4ec472
equal deleted inserted replaced
58083:9046db64ca39 58084:cddef3bde924
     1 /*
     1 /*
     2  * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    65                                      initial_capacity, CHECK);
    65                                      initial_capacity, CHECK);
    66   }
    66   }
    67 }
    67 }
    68 
    68 
    69 HSpaceCounters::~HSpaceCounters() {
    69 HSpaceCounters::~HSpaceCounters() {
    70   if (_name_space != NULL) {
    70   FREE_C_HEAP_ARRAY(char, _name_space);
    71     FREE_C_HEAP_ARRAY(char, _name_space);
       
    72   }
       
    73 }
    71 }
    74 
    72 
    75 void HSpaceCounters::update_capacity(size_t v) {
    73 void HSpaceCounters::update_capacity(size_t v) {
    76   _capacity->set_value(v);
    74   _capacity->set_value(v);
    77 }
    75 }