@@ -3893,10 +3893,11 @@ // expression stack looks correct. __ addi(xbcp, xbcp, 1); // store object __ sd(x10, Address(c_rarg1, BasicObjectLock::obj_offset())); + __ lock_object(c_rarg1); // check to make sure this monitor doesn't cause stack overflow after locking __ save_bcp(); // in case of exception __ generate_stack_overflow_check(0);