This commit is contained in:
Jesper Wilhelmsson 2019-01-14 23:05:26 +01:00
commit 528bc73ca4
51 changed files with 355 additions and 233 deletions

View file

@ -2178,6 +2178,7 @@ void InstanceKlass::clean_method_data() {
for (int m = 0; m < methods()->length(); m++) {
MethodData* mdo = methods()->at(m)->method_data();
if (mdo != NULL) {
MutexLockerEx ml(SafepointSynchronize::is_at_safepoint() ? NULL : mdo->extra_data_lock());
mdo->clean_method_data(/*always_clean*/false);
}
}