mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8210856: Move InstanceKlass DependencyContext cleaning to SystemDictionary::do_unloading()
Already walk classes in ClassLoaderData::unload so generalize to also clean nmethod dependencies. Reviewed-by: eosterlund, dlong, vlivanov
This commit is contained in:
parent
9c60728a28
commit
06a1ea846a
6 changed files with 25 additions and 33 deletions
|
@ -605,9 +605,10 @@ void ClassLoaderData::unload() {
|
|||
// if they are not already on the _klasses list.
|
||||
free_deallocate_list_C_heap_structures();
|
||||
|
||||
// Tell serviceability tools these classes are unloading
|
||||
// Clean up class dependencies and tell serviceability tools
|
||||
// these classes are unloading. Must be called
|
||||
// after erroneous classes are released.
|
||||
classes_do(InstanceKlass::notify_unload_class);
|
||||
classes_do(InstanceKlass::unload_class);
|
||||
|
||||
// Clean up global class iterator for compiler
|
||||
static_klass_iterator.adjust_saved_class(this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue