changeset 7384:ab72a2f48aef

8062950: Bug in locking code when UseOptoBiasInlining is disabled: assert(dmw->is_neutral()) failed: invariant Reviewed-by: dholmes, kvn
author mdoerr
date Wed, 05 Nov 2014 16:28:11 +0100
parents d44a81242b1e
children 86c674274c94
files src/cpu/x86/vm/macroAssembler_x86.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/cpu/x86/vm/macroAssembler_x86.cpp	Wed Nov 12 10:34:08 2014 +0000
+++ b/src/cpu/x86/vm/macroAssembler_x86.cpp	Wed Nov 05 16:28:11 2014 +0100
@@ -1769,7 +1769,7 @@
     // at [FETCH], below, will never observe a biased encoding (*101b).
     // If this invariant is not held we risk exclusion (safety) failure.
     if (UseBiasedLocking && !UseOptoBiasInlining) {
-      biased_locking_enter(boxReg, objReg, tmpReg, scrReg, true, DONE_LABEL, NULL, counters);
+      biased_locking_enter(boxReg, objReg, tmpReg, scrReg, false, DONE_LABEL, NULL, counters);
     }
 
 #if INCLUDE_RTM_OPT