--- old/src/hotspot/share/classfile/systemDictionary.cpp 2018-08-27 13:58:46.961076611 -0400 +++ new/src/hotspot/share/classfile/systemDictionary.cpp 2018-08-27 13:58:46.528644632 -0400 @@ -89,6 +89,9 @@ #if INCLUDE_JVMCI #include "jvmci/jvmciRuntime.hpp" #endif +#if INCLUDE_JFR +#include "jfr/jfr.hpp" +#endif PlaceholderTable* SystemDictionary::_placeholders = NULL; Dictionary* SystemDictionary::_shared_dictionary = NULL; @@ -1856,6 +1859,7 @@ // First, mark for unload all ClassLoaderData referencing a dead class loader. unloading_occurred = ClassLoaderDataGraph::do_unloading(do_cleaning); if (unloading_occurred) { + JFR_ONLY(Jfr::on_unloading_classes();) ClassLoaderDataGraph::clean_module_and_package_info(); } }