< prev index next >

src/hotspot/share/classfile/systemDictionary.cpp

Print this page
rev 52404 : imported patch 8213307-rmt-cleanup

@@ -1843,19 +1843,18 @@
 // ----------------------------------------------------------------------------
 // GC support
 
 // Assumes classes in the SystemDictionary are only unloaded at a safepoint
 // Note: anonymous classes are not in the SD.
-bool SystemDictionary::do_unloading(GCTimer* gc_timer,
-                                    bool do_cleaning) {
+bool SystemDictionary::do_unloading(GCTimer* gc_timer) {
 
   bool unloading_occurred;
   {
     GCTraceTime(Debug, gc, phases) t("ClassLoaderData", gc_timer);
 
     // First, mark for unload all ClassLoaderData referencing a dead class loader.
-    unloading_occurred = ClassLoaderDataGraph::do_unloading(do_cleaning);
+    unloading_occurred = ClassLoaderDataGraph::do_unloading();
     if (unloading_occurred) {
       JFR_ONLY(Jfr::on_unloading_classes();)
       ClassLoaderDataGraph::clean_module_and_package_info();
     }
   }

@@ -1881,14 +1880,12 @@
     // of the class loader (eg. cached protection domain oops). So we need to
     // explicitly unlink them here.
     _pd_cache_table->trigger_cleanup();
   }
 
-  if (do_cleaning) {
     GCTraceTime(Debug, gc, phases) t("ResolvedMethodTable", gc_timer);
     ResolvedMethodTable::trigger_cleanup();
-  }
 
   return unloading_occurred;
 }
 
 void SystemDictionary::oops_do(OopClosure* f) {
< prev index next >