Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit 8ea6f9e

Browse files
author
Vladimir Kempik
committed
8232616: JVMCI_lock fails to get initialized when cds is disabled
Reviewed-by: yan
1 parent dae1da1 commit 8ea6f9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hotspot/share/runtime/mutexLocker.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,14 +358,14 @@ void mutex_init() {
358358
#if INCLUDE_JVMTI
359359
def(CDSClassFileStream_lock , PaddedMutex , max_nonleaf, false, Monitor::_safepoint_check_always);
360360
#endif
361+
def(DumpTimeTable_lock , PaddedMutex , leaf, true, Monitor::_safepoint_check_never);
362+
#endif // INCLUDE_CDS
361363

362364
#if INCLUDE_JVMCI
363365
def(JVMCI_lock , PaddedMonitor, nonleaf+2, true, Monitor::_safepoint_check_always);
364366
def(JVMCIGlobalAlloc_lock , PaddedMutex , nonleaf, true, Monitor::_safepoint_check_never);
365367
def(JVMCIGlobalActive_lock , PaddedMutex , nonleaf-1, true, Monitor::_safepoint_check_never);
366368
#endif
367-
def(DumpTimeTable_lock , PaddedMutex , leaf, true, Monitor::_safepoint_check_never);
368-
#endif // INCLUDE_CDS
369369
}
370370

371371
GCMutexLocker::GCMutexLocker(Monitor * mutex) {

0 commit comments

Comments
 (0)