equal
deleted
inserted
replaced
774 _saved_unloading = _unloading; |
774 _saved_unloading = _unloading; |
775 |
775 |
776 // mark metadata seen on the stack and code cache so we can delete |
776 // mark metadata seen on the stack and code cache so we can delete |
777 // unneeded entries. |
777 // unneeded entries. |
778 bool has_redefined_a_class = JvmtiExport::has_redefined_a_class(); |
778 bool has_redefined_a_class = JvmtiExport::has_redefined_a_class(); |
779 MetadataOnStackMark md_on_stack; |
779 MetadataOnStackMark md_on_stack(has_redefined_a_class); |
780 if (has_redefined_a_class) { |
780 if (has_redefined_a_class) { |
781 // purge_previous_versions also cleans weak method links. Because |
781 // purge_previous_versions also cleans weak method links. Because |
782 // one method's MDO can reference another method from another |
782 // one method's MDO can reference another method from another |
783 // class loader, we need to first clean weak method links for all |
783 // class loader, we need to first clean weak method links for all |
784 // class loaders here. Below, we can then free redefined methods |
784 // class loaders here. Below, we can then free redefined methods |