8072128: mutexLocker.cpp _mutex_array[] initialization broken with safepoint check change
authormockner
Thu, 19 Mar 2015 15:30:06 -0400
changeset 30108 fbe647bcbc25
parent 30107 e3d259b825a1
child 30109 366660027ab5
8072128: mutexLocker.cpp _mutex_array[] initialization broken with safepoint check change Summary: Fixed missing "++" in _mutex_array[] initialization. Reviewed-by: dholmes, fparain
hotspot/src/share/vm/runtime/mutexLocker.cpp
--- 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() {