# HG changeset patch # User gziemski # Date 1560879569 18000 # Node ID 3e08fa647eea3a729415eaf843050c9f43d589e4 # Parent 922a4a554807d33e7c61d36857f1a0cb559a4ab4 8225310: JFR crashed in JfrPeriodicEventSet::requestProtectionDomainCacheTableStatistics() Summary: Added lock around table usage Reviewed-by: coleenp, hseigel diff -r 922a4a554807 -r 3e08fa647eea src/hotspot/share/classfile/systemDictionary.cpp --- 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(); }