Skip to content

Commit 048b09b

Browse files
committedOct 18, 2019
8232616: JVMCI_lock fails to get initialized when cds is disabled
Reviewed-by: iklam, dholmes
1 parent 5db7fc5 commit 048b09b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/hotspot/share/runtime/mutexLocker.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -334,12 +334,12 @@ void mutex_init() {
334334
#if INCLUDE_JVMTI
335335
def(CDSClassFileStream_lock , PaddedMutex , max_nonleaf, false, _safepoint_check_always);
336336
#endif
337+
def(DumpTimeTable_lock , PaddedMutex , leaf, true, _safepoint_check_never);
338+
#endif // INCLUDE_CDS
337339

338340
#if INCLUDE_JVMCI
339341
def(JVMCI_lock , PaddedMonitor, nonleaf+2, true, _safepoint_check_always);
340342
#endif
341-
def(DumpTimeTable_lock , PaddedMutex , leaf, true, _safepoint_check_never);
342-
#endif // INCLUDE_CDS
343343
}
344344

345345
GCMutexLocker::GCMutexLocker(Mutex* mutex) {

0 commit comments

Comments
 (0)
Please sign in to comment.