src/hotspot/share/compiler/compileBroker.cpp
changeset 57840 4863a802a7c1
parent 57758 91a758925be7
child 58177 4932dce35882
--- a/src/hotspot/share/compiler/compileBroker.cpp	Wed Aug 21 18:03:50 2019 -0700
+++ b/src/hotspot/share/compiler/compileBroker.cpp	Thu Aug 22 09:51:36 2019 -0400
@@ -2674,8 +2674,8 @@
   // for the entire duration of aggregation and printing. That makes sure
   // we see a consistent picture and do not run into issues caused by
   // the CodeHeap being altered concurrently.
-  Monitor* global_lock   = allFun ? CodeCache_lock : NULL;
-  Monitor* function_lock = allFun ? NULL : CodeCache_lock;
+  Mutex* global_lock   = allFun ? CodeCache_lock : NULL;
+  Mutex* function_lock = allFun ? NULL : CodeCache_lock;
   ts_global.update(); // record starting point
   MutexLocker mu2(global_lock, Mutex::_no_safepoint_check_flag);
   if (global_lock != NULL) {