equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2018, 2019 SAP SE. All rights reserved. |
|
3 * Copyright (c) 2018, 2019 Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
5 * |
5 * This code is free software; you can redistribute it and/or modify it |
6 * 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 |
7 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
8 * published by the Free Software Foundation. |
22 * |
23 * |
23 */ |
24 */ |
24 #include "precompiled.hpp" |
25 #include "precompiled.hpp" |
25 #include "classfile/classLoaderData.inline.hpp" |
26 #include "classfile/classLoaderData.inline.hpp" |
26 #include "classfile/javaClasses.hpp" |
27 #include "classfile/javaClasses.hpp" |
|
28 #include "memory/metaspace/classLoaderMetaspace.hpp" |
27 #include "memory/metaspace/printCLDMetaspaceInfoClosure.hpp" |
29 #include "memory/metaspace/printCLDMetaspaceInfoClosure.hpp" |
28 #include "memory/metaspace/printMetaspaceInfoKlassClosure.hpp" |
30 #include "memory/metaspace/printMetaspaceInfoKlassClosure.hpp" |
29 #include "memory/metaspaceShared.hpp" |
31 #include "memory/metaspace/metaspaceCommon.hpp" |
30 #include "memory/resourceArea.hpp" |
32 #include "memory/resourceArea.hpp" |
31 #include "runtime/safepoint.hpp" |
33 #include "runtime/safepoint.hpp" |
32 #include "utilities/globalDefinitions.hpp" |
34 #include "utilities/globalDefinitions.hpp" |
33 #include "utilities/ostream.hpp" |
35 #include "utilities/ostream.hpp" |
34 |
36 |
78 _num_loaders_without_metaspace ++; |
80 _num_loaders_without_metaspace ++; |
79 return; |
81 return; |
80 } |
82 } |
81 |
83 |
82 // Collect statistics for this class loader metaspace |
84 // Collect statistics for this class loader metaspace |
83 ClassLoaderMetaspaceStatistics this_cld_stat; |
85 clms_stats_t this_cld_stat; |
84 msp->add_to_statistics(&this_cld_stat); |
86 msp->add_to_statistics(&this_cld_stat); |
85 |
87 |
86 // And add it to the running totals |
88 // And add it to the running totals |
87 _stats_total.add(this_cld_stat); |
89 _stats_total.add(this_cld_stat); |
88 _num_loaders ++; |
90 _num_loaders ++; |