< prev index next >
src/hotspot/share/oops/instanceKlass.cpp
Print this page
*** 78,87 ****
--- 78,91 ----
#include "utilities/macros.hpp"
#include "utilities/stringUtils.hpp"
#ifdef COMPILER1
#include "c1/c1_Compiler.hpp"
#endif
+ #if INCLUDE_JFR
+ #include "jfr/jfrEvents.hpp"
+ #endif
+
#ifdef DTRACE_ENABLED
#define HOTSPOT_CLASS_INITIALIZATION_required HOTSPOT_CLASS_INITIALIZATION_REQUIRED
*** 2421,2430 ****
--- 2425,2442 ----
JvmtiExport::post_class_unload(ik);
}
// notify ClassLoadingService of class unload
ClassLoadingService::notify_class_unloaded(ik);
+
+ #if INCLUDE_JFR
+ assert(ik != NULL, "invariant");
+ EventClassUnload event;
+ event.set_unloadedClass(ik);
+ event.set_definingClassLoader(ik->class_loader_data());
+ event.commit();
+ #endif
}
void InstanceKlass::release_C_heap_structures(InstanceKlass* ik) {
// Clean up C heap
ik->release_C_heap_structures();
< prev index next >