2527 JvmtiExport::post_class_unload(ik); |
2531 JvmtiExport::post_class_unload(ik); |
2528 } |
2532 } |
2529 |
2533 |
2530 // notify ClassLoadingService of class unload |
2534 // notify ClassLoadingService of class unload |
2531 ClassLoadingService::notify_class_unloaded(ik); |
2535 ClassLoadingService::notify_class_unloaded(ik); |
|
2536 |
|
2537 #if INCLUDE_JFR |
|
2538 assert(ik != NULL, "invariant"); |
|
2539 EventClassUnload event; |
|
2540 event.set_unloadedClass(ik); |
|
2541 event.set_definingClassLoader(ik->class_loader_data()); |
|
2542 event.commit(); |
|
2543 #endif |
2532 } |
2544 } |
2533 |
2545 |
2534 void InstanceKlass::release_C_heap_structures(InstanceKlass* ik) { |
2546 void InstanceKlass::release_C_heap_structures(InstanceKlass* ik) { |
2535 // Clean up C heap |
2547 // Clean up C heap |
2536 ik->release_C_heap_structures(); |
2548 ik->release_C_heap_structures(); |