diff -r c7a3e57fdf4a -r b985cbb00e68 src/share/vm/runtime/mutexLocker.hpp --- a/src/share/vm/runtime/mutexLocker.hpp Thu Aug 01 03:44:03 2019 +0100 +++ b/src/share/vm/runtime/mutexLocker.hpp Mon Aug 12 18:30:40 2019 +0300 @@ -142,12 +142,17 @@ extern Monitor* Service_lock; // a lock used for service thread operation extern Monitor* PeriodicTask_lock; // protects the periodic task structure -#ifdef INCLUDE_TRACE +#ifdef INCLUDE_JFR extern Mutex* JfrStacktrace_lock; // used to guard access to the JFR stacktrace table extern Monitor* JfrMsg_lock; // protects JFR messaging extern Mutex* JfrBuffer_lock; // protects JFR buffer operations extern Mutex* JfrStream_lock; // protects JFR stream access extern Mutex* JfrThreadGroups_lock; // protects JFR access to Thread Groups + +#ifndef SUPPORTS_NATIVE_CX8 +extern Mutex* JfrCounters_lock; // provides atomic updates of JFR counters +#endif + #endif #ifndef SUPPORTS_NATIVE_CX8