8209738: Remove ClassLoaderDataGraph::*oops_do functions

Make walking CLDG more consistent.

Reviewed-by: dholmes, tschatzl
This commit is contained in:
Coleen Phillimore 2018-08-21 09:33:41 -04:00
parent f6bcc38500
commit dc556f4086
6 changed files with 9 additions and 34 deletions

View file

@ -2188,7 +2188,8 @@ void PSParallelCompact::adjust_roots(ParCompactionManager* cm) {
Management::oops_do(&oop_closure);
JvmtiExport::oops_do(&oop_closure);
SystemDictionary::oops_do(&oop_closure);
ClassLoaderDataGraph::oops_do(&oop_closure, true);
CLDToOopClosure cld_closure(&oop_closure);
ClassLoaderDataGraph::cld_do(&cld_closure);
// Now adjust pointers in remaining weak roots. (All of which should
// have been cleared if they pointed to non-surviving objects.)