hotspot/src/share/vm/classfile/classLoaderData.cpp
changeset 41727 f1658e76a682
parent 40927 59f3c8a69541
child 42639 762117d57d05
equal deleted inserted replaced
41719:d2a206359a7b 41727:f1658e76a682
   637 #ifndef PRODUCT
   637 #ifndef PRODUCT
   638 // Define to dump klasses
   638 // Define to dump klasses
   639 #undef CLD_DUMP_KLASSES
   639 #undef CLD_DUMP_KLASSES
   640 
   640 
   641 void ClassLoaderData::dump(outputStream * const out) {
   641 void ClassLoaderData::dump(outputStream * const out) {
   642   ResourceMark rm;
       
   643   out->print("ClassLoaderData CLD: " PTR_FORMAT ", loader: " PTR_FORMAT ", loader_klass: " PTR_FORMAT " %s {",
   642   out->print("ClassLoaderData CLD: " PTR_FORMAT ", loader: " PTR_FORMAT ", loader_klass: " PTR_FORMAT " %s {",
   644       p2i(this), p2i((void *)class_loader()),
   643       p2i(this), p2i((void *)class_loader()),
   645       p2i(class_loader() != NULL ? class_loader()->klass() : NULL), loader_name());
   644       p2i(class_loader() != NULL ? class_loader()->klass() : NULL), loader_name());
   646   if (claimed()) out->print(" claimed ");
   645   if (claimed()) out->print(" claimed ");
   647   if (is_unloading()) out->print(" unloading ");
   646   if (is_unloading()) out->print(" unloading ");
   654     out->print_cr("metaspace: NULL");
   653     out->print_cr("metaspace: NULL");
   655   }
   654   }
   656 
   655 
   657 #ifdef CLD_DUMP_KLASSES
   656 #ifdef CLD_DUMP_KLASSES
   658   if (Verbose) {
   657   if (Verbose) {
   659     ResourceMark rm;
       
   660     Klass* k = _klasses;
   658     Klass* k = _klasses;
   661     while (k != NULL) {
   659     while (k != NULL) {
   662       out->print_cr("klass " PTR_FORMAT ", %s, CT: %d, MUT: %d", k, k->name()->as_C_string(),
   660       out->print_cr("klass " PTR_FORMAT ", %s, CT: %d, MUT: %d", k, k->name()->as_C_string(),
   663           k->has_modified_oops(), k->has_accumulated_modified_oops());
   661           k->has_modified_oops(), k->has_accumulated_modified_oops());
   664       assert(k != k->next_link(), "no loops!");
   662       assert(k != k->next_link(), "no loops!");