equal
deleted
inserted
replaced
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(); |