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:
Coleen Phillimore 2017-04-12 08:02:29 -04:00
parent 221d948b51
commit c52443f75b
17 changed files with 19 additions and 200 deletions

View file

@ -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.