8072128: mutexLocker.cpp _mutex_array[] initialization broken with safepoint check change
Summary: Fixed missing "++" in _mutex_array[] initialization.
Reviewed-by: dholmes, fparain
--- a/hotspot/src/share/vm/runtime/mutexLocker.cpp Fri Mar 20 02:44:51 2015 -0700
+++ b/hotspot/src/share/vm/runtime/mutexLocker.cpp Thu Mar 19 15:30:06 2015 -0400
@@ -169,7 +169,7 @@
#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() {