hotspot/src/share/vm/classfile/dictionary.cpp
changeset 46271 979ebd346ecf
parent 42073 89e056fd82cc
child 46274 534d019edb92
equal deleted inserted replaced
46270:2e7898927798 46271:979ebd346ecf
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 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.
   729 
   729 
   730 // ----------------------------------------------------------------------------
   730 // ----------------------------------------------------------------------------
   731 
   731 
   732 void Dictionary::print(bool details) {
   732 void Dictionary::print(bool details) {
   733   ResourceMark rm;
   733   ResourceMark rm;
   734   HandleMark   hm;
       
   735 
   734 
   736   if (details) {
   735   if (details) {
   737     tty->print_cr("Java system dictionary (table_size=%d, classes=%d)",
   736     tty->print_cr("Java system dictionary (table_size=%d, classes=%d)",
   738                    table_size(), number_of_entries());
   737                    table_size(), number_of_entries());
   739     tty->print_cr("^ indicates that initiating loader is different from "
   738     tty->print_cr("^ indicates that initiating loader is different from "
   775 
   774 
   776 #ifdef ASSERT
   775 #ifdef ASSERT
   777 void Dictionary::printPerformanceInfoDetails() {
   776 void Dictionary::printPerformanceInfoDetails() {
   778   if (log_is_enabled(Info, hashtables)) {
   777   if (log_is_enabled(Info, hashtables)) {
   779     ResourceMark rm;
   778     ResourceMark rm;
   780     HandleMark   hm;
       
   781 
   779 
   782     log_info(hashtables)(" ");
   780     log_info(hashtables)(" ");
   783     log_info(hashtables)("Java system dictionary (table_size=%d, classes=%d)",
   781     log_info(hashtables)("Java system dictionary (table_size=%d, classes=%d)",
   784                             table_size(), number_of_entries());
   782                             table_size(), number_of_entries());
   785     log_info(hashtables)("1st number: the bucket index");
   783     log_info(hashtables)("1st number: the bucket index");