changeset 30108:fbe647bcbc25

8072128: mutexLocker.cpp _mutex_array[] initialization broken with safepoint check change Summary: Fixed missing "++" in _mutex_array[] initialization. Reviewed-by: dholmes, fparain
author mockner
date Thu, 19 Mar 2015 15:30:06 -0400
parents e3d259b825a1
children 366660027ab5
files hotspot/src/share/vm/runtime/mutexLocker.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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() {