hotspot/src/share/vm/classfile/moduleEntry.cpp
changeset 46475 75902cea18af
parent 46458 3c12af929e7d
child 46729 c62d2e8b2728
equal deleted inserted replaced
46474:c872a196b75f 46475:75902cea18af
   508                location() != NULL ? location()->as_C_string() : "NULL",
   508                location() != NULL ? location()->as_C_string() : "NULL",
   509                BOOL_TO_STR(!can_read_all_unnamed()), p2i(next()));
   509                BOOL_TO_STR(!can_read_all_unnamed()), p2i(next()));
   510 }
   510 }
   511 
   511 
   512 void ModuleEntryTable::verify() {
   512 void ModuleEntryTable::verify() {
   513   int element_count = 0;
   513   verify_table<ModuleEntry>("Module Entry Table");
   514   for (int i = 0; i < table_size(); i++) {
       
   515     for (ModuleEntry* probe = bucket(i);
       
   516                               probe != NULL;
       
   517                               probe = probe->next()) {
       
   518       probe->verify();
       
   519       element_count++;
       
   520     }
       
   521   }
       
   522   guarantee(number_of_entries() == element_count,
       
   523             "Verify of Module Entry Table failed");
       
   524   DEBUG_ONLY(verify_lookup_length((double)number_of_entries() / table_size(), "Module Entry Table"));
       
   525 }
   514 }
   526 
   515 
   527 void ModuleEntry::verify() {
   516 void ModuleEntry::verify() {
   528   guarantee(loader_data() != NULL, "A module entry must be associated with a loader.");
   517   guarantee(loader_data() != NULL, "A module entry must be associated with a loader.");
   529 }
   518 }