hotspot/src/share/vm/gc_implementation/shared/gSpaceCounters.hpp
changeset 27880 afb974a04396
parent 22234 da823d78ad65
equal deleted inserted replaced
27879:419385282044 27880:afb974a04396
     1 /*
     1 /*
     2  * Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2002, 2014, 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.
    53 
    53 
    54   GSpaceCounters(const char* name, int ordinal, size_t max_size, Generation* g,
    54   GSpaceCounters(const char* name, int ordinal, size_t max_size, Generation* g,
    55                  GenerationCounters* gc, bool sampled=true);
    55                  GenerationCounters* gc, bool sampled=true);
    56 
    56 
    57   ~GSpaceCounters() {
    57   ~GSpaceCounters() {
    58     if (_name_space != NULL) FREE_C_HEAP_ARRAY(char, _name_space, mtGC);
    58     if (_name_space != NULL) FREE_C_HEAP_ARRAY(char, _name_space);
    59   }
    59   }
    60 
    60 
    61   inline void update_capacity() {
    61   inline void update_capacity() {
    62     _capacity->set_value(_gen->capacity());
    62     _capacity->set_value(_gen->capacity());
    63   }
    63   }