< prev index next >

src/share/vm/oops/instanceKlass.cpp

Print this page

        

*** 76,85 **** --- 76,89 ---- #include "oops/oop.pcgc.inline.hpp" #endif // INCLUDE_ALL_GCS #ifdef COMPILER1 #include "c1/c1_Compiler.hpp" #endif + #if INCLUDE_JFR + #include "jfr/jfrEvents.hpp" + #endif + PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC #ifdef DTRACE_ENABLED
*** 2524,2533 **** --- 2528,2545 ---- 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 >