8253262: Allocate in DumpRegion is not thread safe

Reviewed-by: ccheung
This commit is contained in:
Yumin Qi 2020-09-17 16:56:37 +00:00
parent 3570f5a924
commit 12dfe1c9b6
3 changed files with 12 additions and 7 deletions

View file

@ -151,6 +151,7 @@ Mutex* CDSClassFileStream_lock = NULL;
#endif
Mutex* DumpTimeTable_lock = NULL;
Mutex* CDSLambda_lock = NULL;
Mutex* DumpRegion_lock = NULL;
#endif // INCLUDE_CDS
#if INCLUDE_JVMCI
@ -346,6 +347,7 @@ void mutex_init() {
#endif
def(DumpTimeTable_lock , PaddedMutex , leaf - 1, true, _safepoint_check_never);
def(CDSLambda_lock , PaddedMutex , leaf, true, _safepoint_check_never);
def(DumpRegion_lock , PaddedMutex , leaf, true, _safepoint_check_never);
#endif // INCLUDE_CDS
#if INCLUDE_JVMCI