< prev index next >

src/share/vm/classfile/placeholders.cpp

Print this page




 201   tty->print("\n");
 202   tty->print("superThreadQ threads:");
 203   superThreadQ()->printActionQ();
 204   tty->print("\n");
 205   tty->print("defineThreadQ threads:");
 206   defineThreadQ()->printActionQ();
 207   tty->print("\n");
 208 }
 209 #endif
 210 
 211 void PlaceholderEntry::verify() const {
 212   guarantee(loader_data() != NULL, "Must have been setup.");
 213   guarantee(loader_data()->class_loader() == NULL || loader_data()->class_loader()->is_instance(),
 214             "checking type of _loader");
 215   guarantee(instance_klass() == NULL
 216             || instance_klass()->is_instance_klass(),
 217             "checking type of instance_klass result");
 218 }
 219 
 220 void PlaceholderTable::verify() {
 221   int element_count = 0;
 222   for (int pindex = 0; pindex < table_size(); pindex++) {
 223     for (PlaceholderEntry* probe = bucket(pindex);
 224                            probe != NULL;
 225                            probe = probe->next()) {
 226       probe->verify();
 227       element_count++;  // both klasses and place holders count
 228     }
 229   }
 230   guarantee(number_of_entries() == element_count,
 231             "Verify of system dictionary failed");
 232 }
 233 
 234 
 235 #ifndef PRODUCT
 236 void PlaceholderTable::print() {


 237   for (int pindex = 0; pindex < table_size(); pindex++) {
 238     for (PlaceholderEntry* probe = bucket(pindex);
 239                            probe != NULL;
 240                            probe = probe->next()) {
 241       if (Verbose) tty->print("%4d: ", pindex);
 242       tty->print(" place holder ");
 243 
 244       probe->print();
 245       tty->cr();
 246     }
 247   }
 248 }
 249 #endif


 201   tty->print("\n");
 202   tty->print("superThreadQ threads:");
 203   superThreadQ()->printActionQ();
 204   tty->print("\n");
 205   tty->print("defineThreadQ threads:");
 206   defineThreadQ()->printActionQ();
 207   tty->print("\n");
 208 }
 209 #endif
 210 
 211 void PlaceholderEntry::verify() const {
 212   guarantee(loader_data() != NULL, "Must have been setup.");
 213   guarantee(loader_data()->class_loader() == NULL || loader_data()->class_loader()->is_instance(),
 214             "checking type of _loader");
 215   guarantee(instance_klass() == NULL
 216             || instance_klass()->is_instance_klass(),
 217             "checking type of instance_klass result");
 218 }
 219 
 220 void PlaceholderTable::verify() {
 221   verify_table<PlaceholderEntry>("Placeholder Table");










 222 }
 223 
 224 
 225 #ifndef PRODUCT
 226 void PlaceholderTable::print() {
 227   tty->print_cr("Placeholder table table_size=%d, entries=%d",
 228                 table_size(), number_of_entries());
 229   for (int pindex = 0; pindex < table_size(); pindex++) {
 230     for (PlaceholderEntry* probe = bucket(pindex);
 231                            probe != NULL;
 232                            probe = probe->next()) {
 233       tty->print("%4d: ", pindex);
 234       tty->print(" place holder ");
 235 
 236       probe->print();
 237       tty->cr();
 238     }
 239   }
 240 }
 241 #endif
< prev index next >