< prev index next >

src/hotspot/share/gc/shared/ageTable.cpp

Print this page




   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"

  26 #include "gc/shared/ageTable.inline.hpp"
  27 #include "gc/shared/ageTableTracer.hpp"
  28 #include "gc/shared/collectedHeap.hpp"
  29 #include "gc/shared/collectorPolicy.hpp"
  30 #include "memory/resourceArea.hpp"
  31 #include "logging/log.hpp"
  32 #include "oops/oop.inline.hpp"
  33 #include "prims/jvm.h"
  34 #include "utilities/copy.hpp"
  35 
  36 /* Copyright (c) 1992, 2016, Oracle and/or its affiliates, and Stanford University.
  37    See the LICENSE file for license information. */
  38 
  39 AgeTable::AgeTable(bool global) {
  40 
  41   clear();
  42 
  43   if (UsePerfData && global) {
  44 
  45     ResourceMark rm;
  46     EXCEPTION_MARK;
  47 
  48     const char* agetable_ns = "generation.0.agetable";
  49     const char* bytes_ns = PerfDataManager::name_space(agetable_ns, "bytes");
  50 
  51     for(int age = 0; age < table_size; age ++) {
  52       char age_name[10];
  53       jio_snprintf(age_name, sizeof(age_name), "%2.2d", age);




   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "jvm.h"
  27 #include "gc/shared/ageTable.inline.hpp"
  28 #include "gc/shared/ageTableTracer.hpp"
  29 #include "gc/shared/collectedHeap.hpp"
  30 #include "gc/shared/collectorPolicy.hpp"
  31 #include "memory/resourceArea.hpp"
  32 #include "logging/log.hpp"
  33 #include "oops/oop.inline.hpp"

  34 #include "utilities/copy.hpp"
  35 
  36 /* Copyright (c) 1992, 2016, Oracle and/or its affiliates, and Stanford University.
  37    See the LICENSE file for license information. */
  38 
  39 AgeTable::AgeTable(bool global) {
  40 
  41   clear();
  42 
  43   if (UsePerfData && global) {
  44 
  45     ResourceMark rm;
  46     EXCEPTION_MARK;
  47 
  48     const char* agetable_ns = "generation.0.agetable";
  49     const char* bytes_ns = PerfDataManager::name_space(agetable_ns, "bytes");
  50 
  51     for(int age = 0; age < table_size; age ++) {
  52       char age_name[10];
  53       jio_snprintf(age_name, sizeof(age_name), "%2.2d", age);


< prev index next >