mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8026985: Rewrite SystemDictionary::classes_do and Dictionary::classes_do to use KlassClosure
Actually remove unused functions like classes_do and methods_do. Reviewed-by: iveresov, sspitsyn, dholmes
This commit is contained in:
parent
221d948b51
commit
c52443f75b
17 changed files with 19 additions and 200 deletions
|
@ -57,19 +57,6 @@ void LoaderConstraintTable::free_entry(LoaderConstraintEntry *entry) {
|
|||
Hashtable<InstanceKlass*, mtClass>::free_entry(entry);
|
||||
}
|
||||
|
||||
// Enhanced Class Redefinition support
|
||||
void LoaderConstraintTable::classes_do(KlassClosure* f) {
|
||||
for (int index = 0; index < table_size(); index++) {
|
||||
for (LoaderConstraintEntry* probe = bucket(index);
|
||||
probe != NULL;
|
||||
probe = probe->next()) {
|
||||
if (probe->klass() != NULL) {
|
||||
f->do_klass(probe->klass());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// The loaderConstraintTable must always be accessed with the
|
||||
// SystemDictionary lock held. This is true even for readers as
|
||||
// entries in the table could be being dynamically resized.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue