--- old/src/hotspot/share/classfile/classLoaderDataGraph.cpp 2019-08-04 08:11:35.528893096 +0200 +++ new/src/hotspot/share/classfile/classLoaderDataGraph.cpp 2019-08-04 08:11:35.324892488 +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() {