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 #include "precompiled.hpp"
25 #include "classfile/classLoaderData.inline.hpp"
26 #include "classfile/javaClasses.hpp"
27 #include "memory/metaspace/printCLDMetaspaceInfoClosure.hpp"
28 #include "memory/metaspace/printMetaspaceInfoKlassClosure.hpp"
29 #include "memory/metaspaceShared.hpp"
30 #include "memory/resourceArea.hpp"
31 #include "runtime/safepoint.hpp"
32 #include "utilities/globalDefinitions.hpp"
33 #include "utilities/ostream.hpp"
34
35
36 namespace metaspace {
37
38 PrintCLDMetaspaceInfoClosure::PrintCLDMetaspaceInfoClosure(outputStream* out, size_t scale, bool do_print,
39 bool do_print_classes, bool break_down_by_chunktype)
40 : _out(out), _scale(scale), _do_print(do_print), _do_print_classes(do_print_classes)
41 , _break_down_by_chunktype(break_down_by_chunktype)
42 , _num_loaders(0), _num_loaders_without_metaspace(0), _num_loaders_unloading(0)
43 , _num_classes(0), _num_classes_shared(0)
44 {
45 memset(_num_loaders_by_spacetype, 0, sizeof(_num_loaders_by_spacetype));
46 memset(_num_classes_by_spacetype, 0, sizeof(_num_classes_by_spacetype));
47 memset(_num_classes_shared_by_spacetype, 0, sizeof(_num_classes_shared_by_spacetype));
48 }
49
|
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 #include "precompiled.hpp"
25 #include "classfile/classLoaderData.inline.hpp"
26 #include "classfile/javaClasses.hpp"
27 #include "memory/metaspace/classLoaderMetaspace.hpp"
28 #include "memory/metaspace/printCLDMetaspaceInfoClosure.hpp"
29 #include "memory/metaspace/printMetaspaceInfoKlassClosure.hpp"
30 #include "memory/metaspace/metaspaceCommon.hpp"
31 #include "memory/resourceArea.hpp"
32 #include "runtime/safepoint.hpp"
33 #include "utilities/globalDefinitions.hpp"
34 #include "utilities/ostream.hpp"
35
36
37 namespace metaspace {
38
39 PrintCLDMetaspaceInfoClosure::PrintCLDMetaspaceInfoClosure(outputStream* out, size_t scale, bool do_print,
40 bool do_print_classes, bool break_down_by_chunktype)
41 : _out(out), _scale(scale), _do_print(do_print), _do_print_classes(do_print_classes)
42 , _break_down_by_chunktype(break_down_by_chunktype)
43 , _num_loaders(0), _num_loaders_without_metaspace(0), _num_loaders_unloading(0)
44 , _num_classes(0), _num_classes_shared(0)
45 {
46 memset(_num_loaders_by_spacetype, 0, sizeof(_num_loaders_by_spacetype));
47 memset(_num_classes_by_spacetype, 0, sizeof(_num_classes_by_spacetype));
48 memset(_num_classes_shared_by_spacetype, 0, sizeof(_num_classes_shared_by_spacetype));
49 }
50
|