changeset 53278 | 4b469f5f4bf2 |
parent 53225 | b11483a74e5d |
child 53293 | 64049c8e7452 |
--- a/src/hotspot/share/oops/instanceKlass.cpp Wed Jan 09 15:53:56 2019 +0100 +++ b/src/hotspot/share/oops/instanceKlass.cpp Thu Jan 10 18:10:15 2019 +0100 @@ -2186,6 +2186,7 @@ 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); } }