8209792: Remove ClassLoaderDataGraph::keep_alive_cld_do
authorcoleenp
Tue, 21 Aug 2018 10:03:22 -0400
changeset 51471 05223cebd7a2
parent 51470 84d3126858d5
child 51472 eb97d1a319f9
8209792: Remove ClassLoaderDataGraph::keep_alive_cld_do Summary: unnecessary Reviewed-by: zgu, tschatzl
src/hotspot/share/classfile/classLoaderData.cpp
src/hotspot/share/classfile/classLoaderData.hpp
--- a/src/hotspot/share/classfile/classLoaderData.cpp	Tue Aug 21 09:33:41 2018 -0400
+++ b/src/hotspot/share/classfile/classLoaderData.cpp	Tue Aug 21 10:03:22 2018 -0400
@@ -1144,13 +1144,9 @@
   }
 }
 
-void ClassLoaderDataGraph::keep_alive_cld_do(CLDClosure* cl) {
-  roots_cld_do(cl, NULL);
-}
-
 void ClassLoaderDataGraph::always_strong_cld_do(CLDClosure* cl) {
   if (ClassUnloading) {
-    keep_alive_cld_do(cl);
+    roots_cld_do(cl, NULL);
   } else {
     cld_do(cl);
   }
--- a/src/hotspot/share/classfile/classLoaderData.hpp	Tue Aug 21 09:33:41 2018 -0400
+++ b/src/hotspot/share/classfile/classLoaderData.hpp	Tue Aug 21 10:03:22 2018 -0400
@@ -104,7 +104,6 @@
   static void cld_do(CLDClosure* cl);
   static void cld_unloading_do(CLDClosure* cl);
   static void roots_cld_do(CLDClosure* strong, CLDClosure* weak);
-  static void keep_alive_cld_do(CLDClosure* cl);
   static void always_strong_cld_do(CLDClosure* cl);
   // klass do
   // Walking classes through the ClassLoaderDataGraph include array classes.  It also includes