mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-15 16:44:36 +02:00
8253262: Allocate in DumpRegion is not thread safe
Reviewed-by: ccheung
This commit is contained in:
parent
3570f5a924
commit
12dfe1c9b6
3 changed files with 12 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue