@@ -414,7 +414,7 @@
Label here;
load_prototype_header(tmp_reg, obj_reg);
orr(tmp_reg, rthread, tmp_reg);
- cmpxchgptr(tmp_reg, swap_reg, obj_reg, rscratch1, here, slow_case);
+ cmpxchgptr(swap_reg, tmp_reg, obj_reg, rscratch1, here, slow_case);
// If the biasing toward our thread failed, then another thread
// succeeded in biasing it toward itself and we need to revoke that
// bias. The revocation will occur in the runtime in the slow case.
@@ -441,7 +441,7 @@
{
Label here, nope;
load_prototype_header(tmp_reg, obj_reg);
- cmpxchgptr(tmp_reg, swap_reg, obj_reg, rscratch1, here, &nope);
+ cmpxchgptr(swap_reg, tmp_reg, obj_reg, rscratch1, here, &nope);
bind(here);
// Fall through to the normal CAS-based lock, because no matter what
@@ -1818,7 +1818,7 @@
__ ldr(obj_reg, Address(oop_handle_reg, 0));
if (UseBiasedLocking) {
- // __ biased_locking_enter(lock_reg, obj_reg, swap_reg, rscratch1, false, lock_done, &slow_path_lock);
+ __ biased_locking_enter(lock_reg, obj_reg, swap_reg, rscratch2, false, lock_done, &slow_path_lock);
}
// Load (object->mark() | 1) into swap_reg %r0
@@ -1257,7 +1257,7 @@
product(bool, RestrictContended, true, \
"Restrict @Contended to trusted classes") \
\
- product(bool, UseBiasedLocking, false, \
+ product(bool, UseBiasedLocking, true, \
"Enable biased locking in JVM") \
\
product(intx, BiasedLockingStartupDelay, 4000, \