src/hotspot/share/services/memBaseline.cpp
changeset 48884 7e17b00dc245
parent 48874 f09fdaad7321
child 51959 db0c3952de52
equal deleted inserted replaced
48883:0f1be3c7b6b2 48884:7e17b00dc245
     1 /*
     1 /*
     2  * Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2012, 2018, 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.
    21  * questions.
    21  * questions.
    22  *
    22  *
    23  */
    23  */
    24 #include "precompiled.hpp"
    24 #include "precompiled.hpp"
    25 
    25 
       
    26 #include "classfile/classLoaderData.inline.hpp"
    26 #include "memory/allocation.hpp"
    27 #include "memory/allocation.hpp"
    27 #include "runtime/safepoint.hpp"
    28 #include "runtime/safepoint.hpp"
    28 #include "runtime/thread.inline.hpp"
    29 #include "runtime/thread.inline.hpp"
    29 #include "services/memBaseline.hpp"
    30 #include "services/memBaseline.hpp"
    30 #include "services/memTracker.hpp"
    31 #include "services/memTracker.hpp"
   178 }
   179 }
   179 
   180 
   180 bool MemBaseline::baseline(bool summaryOnly) {
   181 bool MemBaseline::baseline(bool summaryOnly) {
   181   reset();
   182   reset();
   182 
   183 
   183   _class_count = InstanceKlass::number_of_instance_classes();
   184   _instance_class_count = ClassLoaderDataGraph::num_instance_classes();
       
   185   _array_class_count = ClassLoaderDataGraph::num_array_classes();
   184 
   186 
   185   if (!baseline_summary()) {
   187   if (!baseline_summary()) {
   186     return false;
   188     return false;
   187   }
   189   }
   188 
   190