src/hotspot/share/classfile/moduleEntry.cpp
changeset 51375 b812a85b3aa4
parent 51070 2f4c3cac8556
child 52587 6cd56deebb0d
equal deleted inserted replaced
51374:7be0084191ed 51375:b812a85b3aa4
   434 }
   434 }
   435 
   435 
   436 // Remove dead modules from all other alive modules' reads list.
   436 // Remove dead modules from all other alive modules' reads list.
   437 // This should only occur at class unloading.
   437 // This should only occur at class unloading.
   438 void ModuleEntryTable::purge_all_module_reads() {
   438 void ModuleEntryTable::purge_all_module_reads() {
   439   assert(SafepointSynchronize::is_at_safepoint(), "must be at safepoint");
   439   assert_locked_or_safepoint(Module_lock);
   440   for (int i = 0; i < table_size(); i++) {
   440   for (int i = 0; i < table_size(); i++) {
   441     for (ModuleEntry* entry = bucket(i);
   441     for (ModuleEntry* entry = bucket(i);
   442                       entry != NULL;
   442                       entry != NULL;
   443                       entry = entry->next()) {
   443                       entry = entry->next()) {
   444       entry->purge_reads();
   444       entry->purge_reads();