1765 // order to reduce the number of conditional branches in the most common cases. |
1765 // order to reduce the number of conditional branches in the most common cases. |
1766 // Beware -- there's a subtle invariant that fetch of the markword |
1766 // Beware -- there's a subtle invariant that fetch of the markword |
1767 // at [FETCH], below, will never observe a biased encoding (*101b). |
1767 // at [FETCH], below, will never observe a biased encoding (*101b). |
1768 // If this invariant is not held we risk exclusion (safety) failure. |
1768 // If this invariant is not held we risk exclusion (safety) failure. |
1769 if (UseBiasedLocking && !UseOptoBiasInlining) { |
1769 if (UseBiasedLocking && !UseOptoBiasInlining) { |
1770 biased_locking_enter(boxReg, objReg, tmpReg, scrReg, true, DONE_LABEL, NULL, counters); |
1770 biased_locking_enter(boxReg, objReg, tmpReg, scrReg, false, DONE_LABEL, NULL, counters); |
1771 } |
1771 } |
1772 |
1772 |
1773 #if INCLUDE_RTM_OPT |
1773 #if INCLUDE_RTM_OPT |
1774 if (UseRTMForStackLocks && use_rtm) { |
1774 if (UseRTMForStackLocks && use_rtm) { |
1775 rtm_stack_locking(objReg, tmpReg, scrReg, cx2Reg, |
1775 rtm_stack_locking(objReg, tmpReg, scrReg, cx2Reg, |