hotspot/src/share/vm/classfile/classLoaderData.cpp
changeset 26558 b7df27df6384
parent 25636 eac9208a2516
child 26564 2caee34956f2
equal deleted inserted replaced
26557:e399effe36f9 26558:b7df27df6384
   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