--- a/src/hotspot/share/classfile/systemDictionary.cpp Tue Aug 28 09:06:23 2018 +0200
+++ b/src/hotspot/share/classfile/systemDictionary.cpp Tue Aug 28 10:10:11 2018 -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();
}
}