8232616: JVMCI_lock fails to get initialized when cds is disabled
authorjiefu
Fri, 18 Oct 2019 20:28:16 +0800
changeset 58699 b7465577320f
parent 58698 f7df2861be47
child 58700 f87353679927
8232616: JVMCI_lock fails to get initialized when cds is disabled Reviewed-by: iklam, dholmes
src/hotspot/share/runtime/mutexLocker.cpp
--- a/src/hotspot/share/runtime/mutexLocker.cpp	Fri Oct 18 14:07:47 2019 -0700
+++ b/src/hotspot/share/runtime/mutexLocker.cpp	Fri Oct 18 20:28:16 2019 +0800
@@ -334,12 +334,12 @@
 #if INCLUDE_JVMTI
   def(CDSClassFileStream_lock      , PaddedMutex  , max_nonleaf, false, _safepoint_check_always);
 #endif
+  def(DumpTimeTable_lock           , PaddedMutex  , leaf,        true,  _safepoint_check_never);
+#endif // INCLUDE_CDS
 
 #if INCLUDE_JVMCI
   def(JVMCI_lock                   , PaddedMonitor, nonleaf+2,   true,  _safepoint_check_always);
 #endif
-  def(DumpTimeTable_lock           , PaddedMutex  , leaf,        true,  _safepoint_check_never);
-#endif // INCLUDE_CDS
 }
 
 GCMutexLocker::GCMutexLocker(Mutex* mutex) {