mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8072128: mutexLocker.cpp _mutex_array[] initialization broken with safepoint check change
Fixed missing "++" in _mutex_array[] initialization. Reviewed-by: dholmes, fparain
This commit is contained in:
parent
cc2bb40bf3
commit
0d9de873f4
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ void assert_lock_strong(const Monitor * lock) {
|
|||
#define def(var, type, pri, vm_block, safepoint_check_allowed ) { \
|
||||
var = new type(Mutex::pri, #var, vm_block, safepoint_check_allowed); \
|
||||
assert(_num_mutex < MAX_NUM_MUTEX, "increase MAX_NUM_MUTEX"); \
|
||||
_mutex_array[_num_mutex] = var; \
|
||||
_mutex_array[_num_mutex++] = var; \
|
||||
}
|
||||
|
||||
void mutex_init() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue