src/hotspot/share/classfile/systemDictionary.cpp
changeset 55419 3e08fa647eea
parent 54847 59ea39bb2809
child 55537 4309fedaf7dc
--- a/src/hotspot/share/classfile/systemDictionary.cpp	Tue Jun 18 10:00:35 2019 +0530
+++ b/src/hotspot/share/classfile/systemDictionary.cpp	Tue Jun 18 12:39:29 2019 -0500
@@ -2861,14 +2861,17 @@
 }
 
 TableStatistics SystemDictionary::placeholders_statistics() {
+  MutexLocker ml(SystemDictionary_lock);
   return placeholders()->statistics_calculate();
 }
 
 TableStatistics SystemDictionary::loader_constraints_statistics() {
+  MutexLocker ml(SystemDictionary_lock);
   return constraints()->statistics_calculate();
 }
 
 TableStatistics SystemDictionary::protection_domain_cache_statistics() {
+  MutexLocker ml(SystemDictionary_lock);
   return pd_cache_table()->statistics_calculate();
 }