src/hotspot/share/classfile/classLoaderDataGraph.cpp
branchstuefe-new-metaspace-branch
changeset 58063 bdf136b8ae0e
parent 57603 f9d9bed12d1a
child 58494 54c1ba464b78
--- a/src/hotspot/share/classfile/classLoaderDataGraph.cpp	Tue Sep 10 14:52:53 2019 +0800
+++ b/src/hotspot/share/classfile/classLoaderDataGraph.cpp	Tue Sep 10 09:24:05 2019 +0200
@@ -680,24 +680,6 @@
   return NULL;
 }
 
-ClassLoaderDataGraphMetaspaceIterator::ClassLoaderDataGraphMetaspaceIterator() {
-  assert(SafepointSynchronize::is_at_safepoint(), "must be at safepoint!");
-  _data = ClassLoaderDataGraph::_head;
-}
-
-ClassLoaderDataGraphMetaspaceIterator::~ClassLoaderDataGraphMetaspaceIterator() {}
-
-ClassLoaderMetaspace* ClassLoaderDataGraphMetaspaceIterator::get_next() {
-  assert(_data != NULL, "Should not be NULL in call to the iterator");
-  ClassLoaderMetaspace* result = _data->metaspace_or_null();
-  _data = _data->next();
-  // This result might be NULL for class loaders without metaspace
-  // yet.  It would be nice to return only non-null results but
-  // there is no guarantee that there will be a non-null result
-  // down the list so the caller is going to have to check.
-  return result;
-}
-
 #ifndef PRODUCT
 // callable from debugger
 extern "C" int print_loader_data_graph() {