src/hotspot/share/oops/instanceKlass.cpp
changeset 53293 64049c8e7452
parent 53232 32c6cc430526
parent 53278 4b469f5f4bf2
child 53305 d193d58ae79d
equal deleted inserted replaced
53277:b002e4ee60b0 53293:64049c8e7452
  2176 
  2176 
  2177 void InstanceKlass::clean_method_data() {
  2177 void InstanceKlass::clean_method_data() {
  2178   for (int m = 0; m < methods()->length(); m++) {
  2178   for (int m = 0; m < methods()->length(); m++) {
  2179     MethodData* mdo = methods()->at(m)->method_data();
  2179     MethodData* mdo = methods()->at(m)->method_data();
  2180     if (mdo != NULL) {
  2180     if (mdo != NULL) {
       
  2181       MutexLockerEx ml(SafepointSynchronize::is_at_safepoint() ? NULL : mdo->extra_data_lock());
  2181       mdo->clean_method_data(/*always_clean*/false);
  2182       mdo->clean_method_data(/*always_clean*/false);
  2182     }
  2183     }
  2183   }
  2184   }
  2184 }
  2185 }
  2185 
  2186