8209792: Remove ClassLoaderDataGraph::keep_alive_cld_do
Summary: unnecessary
Reviewed-by: zgu, tschatzl
--- 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