Skip to content
Permalink
Browse files
8242454: [lworld] TestLWorld::test63 fails with "no exception thrown"
  • Loading branch information
TobiHartmann committed Apr 9, 2020
1 parent 0c52cfe commit 096230398c2cefa398f8e7cfa1c7f0d3a3bf3ea3
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/hotspot/cpu/x86/c2_MacroAssembler_x86.cpp
@@ -495,6 +495,10 @@ void C2_MacroAssembler::fast_lock(Register objReg, Register boxReg, Register tmp

// Attempt stack-locking ...
orptr (tmpReg, markWord::unlocked_value);
if (EnableValhalla && !UseBiasedLocking) {
// Mask always_locked bit such that we go to the slow path if object is a value type
andptr(tmpReg, ~((int) markWord::biased_lock_bit_in_place));
}
movptr(Address(boxReg, 0), tmpReg); // Anticipate successful CAS
lock();
cmpxchgptr(boxReg, Address(objReg, oopDesc::mark_offset_in_bytes())); // Updates tmpReg

0 comments on commit 0962303

Please sign in to comment.