equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2012, 2017, 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" |
|
27 #include "memory/allocation.hpp" |
26 #include "memory/allocation.hpp" |
28 #include "runtime/safepoint.hpp" |
27 #include "runtime/safepoint.hpp" |
29 #include "runtime/thread.inline.hpp" |
28 #include "runtime/thread.inline.hpp" |
30 #include "services/memBaseline.hpp" |
29 #include "services/memBaseline.hpp" |
31 #include "services/memTracker.hpp" |
30 #include "services/memTracker.hpp" |
179 } |
178 } |
180 |
179 |
181 bool MemBaseline::baseline(bool summaryOnly) { |
180 bool MemBaseline::baseline(bool summaryOnly) { |
182 reset(); |
181 reset(); |
183 |
182 |
184 _instance_class_count = ClassLoaderDataGraph::num_instance_classes(); |
183 _class_count = InstanceKlass::number_of_instance_classes(); |
185 _array_class_count = ClassLoaderDataGraph::num_array_classes(); |
|
186 |
184 |
187 if (!baseline_summary()) { |
185 if (!baseline_summary()) { |
188 return false; |
186 return false; |
189 } |
187 } |
190 |
188 |