--- a/hotspot/src/share/vm/classfile/dictionary.cpp Wed Apr 12 08:49:08 2017 +0200
+++ b/hotspot/src/share/vm/classfile/dictionary.cpp Wed Apr 12 08:02:29 2017 -0400
@@ -266,23 +266,6 @@
_pd_cache_table->always_strong_oops_do(blk);
}
-
-void Dictionary::always_strong_classes_do(KlassClosure* closure) {
- // Follow all system classes and temporary placeholders in dictionary
- for (int index = 0; index < table_size(); index++) {
- for (DictionaryEntry* probe = bucket(index);
- probe != NULL;
- probe = probe->next()) {
- Klass* e = probe->klass();
- ClassLoaderData* loader_data = probe->loader_data();
- if (is_strongly_reachable(loader_data, e)) {
- closure->do_klass(e);
- }
- }
- }
-}
-
-
// Just the classes from defining class loaders
void Dictionary::classes_do(void f(Klass*)) {
for (int index = 0; index < table_size(); index++) {
@@ -331,20 +314,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.
@@ -651,25 +620,6 @@
return p;
}
-void ProtectionDomainCacheTable::free(ProtectionDomainCacheEntry* to_delete) {
- unsigned int hash = compute_hash(Handle(Thread::current(), to_delete->protection_domain()));
- int index = hash_to_index(hash);
-
- ProtectionDomainCacheEntry** p = bucket_addr(index);
- ProtectionDomainCacheEntry* entry = bucket(index);
- while (true) {
- assert(entry != NULL, "sanity");
-
- if (entry == to_delete) {
- *p = entry->next();
- Hashtable<oop, mtClass>::free_entry(entry);
- break;
- } else {
- p = entry->next_addr();
- entry = *p;
- }
- }
-}
SymbolPropertyTable::SymbolPropertyTable(int table_size)
: Hashtable<Symbol*, mtSymbol>(table_size, sizeof(SymbolPropertyEntry))