--- old/src/share/vm/classfile/dictionary.cpp 2017-03-08 11:09:22.352935471 -0500 +++ new/src/share/vm/classfile/dictionary.cpp 2017-03-08 11:09:21.921095938 -0500 @@ -331,20 +331,6 @@ _pd_cache_table->oops_do(f); } -void Dictionary::methods_do(void f(Method*)) { - for (int index = 0; index < table_size(); index++) { - for (DictionaryEntry* probe = bucket(index); - probe != NULL; - probe = probe->next()) { - Klass* k = probe->klass(); - if (probe->loader_data() == k->class_loader_data()) { - // only take klass is we have the entry with the defining class loader - InstanceKlass::cast(k)->methods_do(f); - } - } - } -} - void Dictionary::unlink(BoolObjectClosure* is_alive) { // Only the protection domain cache table may contain references to the heap // that need to be unlinked.