changeset 52197:05223cebd7a2

8209792: Remove ClassLoaderDataGraph::keep_alive_cld_do Summary: unnecessary Reviewed-by: zgu, tschatzl
author coleenp
date Tue, 21 Aug 2018 10:03:22 -0400
parents 84d3126858d5
children eb97d1a319f9
files src/hotspot/share/classfile/classLoaderData.cpp src/hotspot/share/classfile/classLoaderData.hpp
diffstat 2 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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