src/hotspot/share/gc/serial/cSpaceCounters.cpp
changeset 58084 cddef3bde924
parent 48157 7c4d43c26352
equal deleted inserted replaced
58083:9046db64ca39 58084:cddef3bde924
     1 /*
     1 /*
     2  * Copyright (c) 2002, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2002, 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.
    64                                      _space->capacity(), CHECK);
    64                                      _space->capacity(), CHECK);
    65   }
    65   }
    66 }
    66 }
    67 
    67 
    68 CSpaceCounters::~CSpaceCounters() {
    68 CSpaceCounters::~CSpaceCounters() {
    69     if (_name_space != NULL) FREE_C_HEAP_ARRAY(char, _name_space);
    69   FREE_C_HEAP_ARRAY(char, _name_space);
    70 }
    70 }
    71 
    71 
    72 void CSpaceCounters::update_capacity() {
    72 void CSpaceCounters::update_capacity() {
    73   _capacity->set_value(_space->capacity());
    73   _capacity->set_value(_space->capacity());
    74 }
    74 }