177 178 179 void PlaceholderTable::classes_do(KlassClosure* f) { 180 for (int index = 0; index < table_size(); index++) { 181 for (PlaceholderEntry* probe = bucket(index); 182 probe != NULL; 183 probe = probe->next()) { 184 probe->classes_do(f); 185 } 186 } 187 } 188 189 190 void PlaceholderEntry::classes_do(KlassClosure* closure) { 191 assert(klassname() != NULL, "should have a non-null klass"); 192 if (_instanceKlass != NULL) { 193 closure->do_klass(instance_klass()); 194 } 195 } 196 197 // do all entries in the placeholder table 198 void PlaceholderTable::entries_do(void f(Symbol*)) { 199 for (int index = 0; index < table_size(); index++) { 200 for (PlaceholderEntry* probe = bucket(index); 201 probe != NULL; 202 probe = probe->next()) { 203 f(probe->klassname()); 204 } 205 } 206 } 207 208 209 #ifndef PRODUCT 210 // Note, doesn't append a cr 211 void PlaceholderEntry::print() const { 212 klassname()->print_value(); 213 if (loader_data() != NULL) { 214 tty->print(", loader "); 215 loader_data()->print_value(); 216 } 217 if (supername() != NULL) { 218 tty->print(", supername "); 219 supername()->print_value(); 220 } 221 if (definer() != NULL) { 222 tty->print(", definer "); 223 definer()->print_value(); 224 } 225 if (instance_klass() != NULL) { 226 tty->print(", InstanceKlass "); 227 instance_klass()->print_value(); | 177 178 179 void PlaceholderTable::classes_do(KlassClosure* f) { 180 for (int index = 0; index < table_size(); index++) { 181 for (PlaceholderEntry* probe = bucket(index); 182 probe != NULL; 183 probe = probe->next()) { 184 probe->classes_do(f); 185 } 186 } 187 } 188 189 190 void PlaceholderEntry::classes_do(KlassClosure* closure) { 191 assert(klassname() != NULL, "should have a non-null klass"); 192 if (_instanceKlass != NULL) { 193 closure->do_klass(instance_klass()); 194 } 195 } 196 197 198 #ifndef PRODUCT 199 // Note, doesn't append a cr 200 void PlaceholderEntry::print() const { 201 klassname()->print_value(); 202 if (loader_data() != NULL) { 203 tty->print(", loader "); 204 loader_data()->print_value(); 205 } 206 if (supername() != NULL) { 207 tty->print(", supername "); 208 supername()->print_value(); 209 } 210 if (definer() != NULL) { 211 tty->print(", definer "); 212 definer()->print_value(); 213 } 214 if (instance_klass() != NULL) { 215 tty->print(", InstanceKlass "); 216 instance_klass()->print_value(); |