equal
deleted
inserted
replaced
964 // Only walk all metadata, including the expensive code cache walk, for Full GC |
964 // Only walk all metadata, including the expensive code cache walk, for Full GC |
965 // and only if class redefinition and if there's previous versions of |
965 // and only if class redefinition and if there's previous versions of |
966 // Klasses to delete. |
966 // Klasses to delete. |
967 bool walk_all_metadata = clean_previous_versions && |
967 bool walk_all_metadata = clean_previous_versions && |
968 JvmtiExport::has_redefined_a_class() && |
968 JvmtiExport::has_redefined_a_class() && |
969 InstanceKlass::has_previous_versions(); |
969 InstanceKlass::has_previous_versions_and_reset(); |
970 MetadataOnStackMark md_on_stack(walk_all_metadata); |
970 MetadataOnStackMark md_on_stack(walk_all_metadata); |
971 |
971 |
972 // Save previous _unloading pointer for CMS which may add to unloading list before |
972 // Save previous _unloading pointer for CMS which may add to unloading list before |
973 // purging and we don't want to rewalk the previously unloaded class loader data. |
973 // purging and we don't want to rewalk the previously unloaded class loader data. |
974 _saved_unloading = _unloading; |
974 _saved_unloading = _unloading; |