equal
deleted
inserted
replaced
328 } |
328 } |
329 } |
329 } |
330 } |
330 } |
331 |
331 |
332 // All classes, and their class loaders, including initiating class loaders |
332 // All classes, and their class loaders, including initiating class loaders |
333 void Dictionary::all_entries_do(void f(InstanceKlass*, ClassLoaderData*)) { |
333 void Dictionary::all_entries_do(KlassClosure* closure) { |
334 for (int index = 0; index < table_size(); index++) { |
334 for (int index = 0; index < table_size(); index++) { |
335 for (DictionaryEntry* probe = bucket(index); |
335 for (DictionaryEntry* probe = bucket(index); |
336 probe != NULL; |
336 probe != NULL; |
337 probe = probe->next()) { |
337 probe = probe->next()) { |
338 InstanceKlass* k = probe->instance_klass(); |
338 InstanceKlass* k = probe->instance_klass(); |
339 f(k, loader_data()); |
339 closure->do_klass(k); |
340 } |
340 } |
341 } |
341 } |
342 } |
342 } |
343 |
343 |
344 // Used to scan and relocate the classes during CDS archive dump. |
344 // Used to scan and relocate the classes during CDS archive dump. |